-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Title used in permalink does not have forward slash escaped #3577
Comments
You should create an issue about one thing. |
Better now? The removePathAccents part was due to bad testing by me, it has nothing to do with the problem. |
I've recently been working on a similar issue (for taxonomy terms), and while I was in there, I put in a fix for slashes in titles. See #4092 ; for your example, this will generate-
My changes don't do anything with dots -- for my hugo site, the dots are fine. But, it seems to me like it could make sense to add a configurable flag like "disallowDotsInPathSegments" (or, probably a shorter flag name) to optionally alter that behavior. Does this sound right to you? If my PR is accepted, I could follow it up with something like that. |
@frjo,
I'm renaming this issue to focus on the forward slash problem. If you want to argue for the dots escaping, open a separate issue. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Apologies if I shouldn't "me, too", but just noticed this in I was asking there if I should open a separate issue, but was open to the possibility that I am just doing something wrong. Glad to document and file a bug if necessary. |
Fixed in #5282 |
Could anyone test this again with Hugo 0.54.0? After #5571 was merged, slashes in titles are not escaped anymore (at least for me). I think this issue should be reopened 😞 |
I can confirm regression with slash is not being escaped in url. Any config flags to enable this? |
This issue has been closed for months. Please open a new issue. |
I have this permalink set up for posts.
Characters like a dot and forward slash in the posts title does not get replaced in the generated permalink for the post.
This example title
generates the following permalink
I had hoped it would become
The text was updated successfully, but these errors were encountered: