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

Slug category and tag url #448

Open
clement-michelet opened this issue Jul 10, 2020 · 0 comments
Open

Slug category and tag url #448

clement-michelet opened this issue Jul 10, 2020 · 0 comments

Comments

@clement-michelet
Copy link

Using tags/categories with spaces and special characters (like with accents), it will generate unfriendly url for category/tag page.

Examples :

Tag static site generator will generate a page url /blog/tags/static%20site%20generator/ which is a little bit unfriendly.
By using slug, it will generate a page url /blog/tags/static-site-generator/ which is clean and clearer.

Tag révolution technologique will generate a page url /blog/tags/révolution%20technologique/ which is still not friendly and could lead to bugs because of the special chars.
By using slug, it will generate a page url /blog/tags/revolution-technologique/ which is bug free.


We can leverage new String component to ease slugification. If Twig is upgrade to 3.x, it will also be possible to generate those url with the same logics.

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

No branches or pull requests

2 participants