Skip to content

this.relative_url is not a function #1680

@WolfgangKluge

Description

@WolfgangKluge

This one is related to hexo-generator-sitemap - but I don't think the plugin is responsible...

If I use this plugin and turn the option relative_link on, I get the error this.relative_url is not a function in lib/plugins/helper/url_for.js (line 24). The error occurs while trying to get the permalink-property of a post.

Since other calls to this helper function are working (this.relative_url is defined if not called from the plugin), I reckon a missing initialization step before line 337 in lib/hexo/index.js..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions