-
Notifications
You must be signed in to change notification settings - Fork 21
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
url problem when page title contains an accented letter #20
Comments
@francoisromain thanks for reporting this! I'm working on a fix now. |
@francoisromain I'm actually having difficulty reproducing the issue locally. I also checked out your camino-api repo, where you mentioned this issue, but the pages in that repo with accents in the titles seem to be working fine there as well. Perhaps you could provide a small sample repo that showcases the issue? |
@mipatterson You are right I can't reproduce the bug. I don't know what happened. I still think it would be good to slugify the title in the url Exemple:
Thank you |
Seems like this feature might be particularly useful in SEO scenarios. What do you think of the following acceptance criteria for this feature?
I was considering using the slugify library. |
very cool! Personnally, I will always want to slugify the urls, and I don't see the need for making it optional. Same thing for the Maybe In our current typescript project, we use this slugify lib: https://github.com/sindresorhus/slugify. I don't remember why we chose this one over the other. Thank you very much! |
I definitely think it needs to be optional. Otherwise the Also, my original thought was that it made sense for the plugin to slugify URLs by default, but I'm not so sure that's the right path forward now. At this point it would be a breaking change. Existing uses might have links out in the wild directly linking to pages, and changing this behavior would break those links. For now, I think it's best that it be an opt-in feature. In the future, I would consider defaulting the new option to true, when there's another breaking change that is unavoidable. The reason I had chosen I'll take a look at that slug library and see how it stacks up against the other one. |
Hello and thank you for this useful plugin.
There is a bug in the url when a page title contains an accented letter.
example:
the url of the page is
/pages/Développement/01-introduction.html
and the page is undefined.It works well if I remove the accent.
I would suggest to the slugify
title
to use in the url.The text was updated successfully, but these errors were encountered: