-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: this.relative_url is not a function #20
Comments
+1, same issue here |
Confirmed, use 0.2.7 for now. |
0.2.9 has reverted the pr, this should be fixed. |
8e3dc69 reverted |
I'm still seeing this issue with 0.2.10 if relative_link is true and a root is set. |
I would really like 8e3dc69 also added back as a ticket because it was a bug that needs fixing. Thanks |
@pcgrenier Could you please create a new issue and describe the bug? |
When I have
Also referenced in: hexojs/hexo#1680 |
@connor11528 We have a fix, but haven't release yet. hexojs/hexo#2668 |
This issue was originally raised on the Hexo repo (hexojs/hexo#1680), but it doesn't appear to be their fault. The issue was created in 8e3dc69 in lines 37-46 of lib/renderer.js. By calling
url_for
with the givenctx
as the context, it is breaking the call tothis.relative_url
in Hexo's code: https://github.com/hexojs/hexo/blob/master/lib/plugins/helper/url_for.js#L28I don't really know what the solution is, but this clearly isn't the correct context to use.
The text was updated successfully, but these errors were encountered: