Skip to content
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

Use of permalink in front matter breaks links in 5.x #4650

Closed
Ziflin opened this issue Feb 15, 2021 · 2 comments
Closed

Use of permalink in front matter breaks links in 5.x #4650

Ziflin opened this issue Feb 15, 2021 · 2 comments
Labels

Comments

@Ziflin
Copy link

Ziflin commented Feb 15, 2021

Today I upgrade from Hexo 4.X to 5.3.0 and generated links for posts are now broken on posts that specify a permalink: entry. For example if I have:

permalink: my-first-post/

Hexo will now generate the URLs on article-list pages as:

//my-first-post/

with an incorrect extra '/' at the beginning instead of the correct:

/my-first-post/

which it did before upgrading. If I remove the permalink entry in the front matter, and use the default from the config file which is set to say:

permalink: :title/

then the links are generated correctly.

I see that something was changed for 5.0 in #3464, but I don't know if this is what broke it or not.

@github-actions
Copy link

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stevenjoezhang
Copy link
Member

Yes, the behavior of permalink is changed in Hexo 5 #4359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants