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
Hugo 0.17 regression with page names that contain dot #2555
Comments
By "name of page" you mean what exactly? |
@bep, I mean name of file e.g. |
I'm on macOS 10.12, Hugo v0.17 BuildDate: 2016-10-07T08:42:05-06:00 I'm experiencing the same thing. I have post names that correspond to release version for a piece of software. Post names like, If I try to manually navigate to what I think should be the correct url for a given post, it exists, but it is not being referenced correctly on the main index page. You can see this happening here: http://releasenotes-client.getweave.com/ UPDATE: For some odd reason, in my specific situation, the actual page for the first post doesn't exist, but it does for the second post. So, if you try navigating to http://releasenotes-client.getweave.com/post/v5.2.4295/, it doesn't exist, but http://releasenotes-client.getweave.com/post/v5.2.4289/ does. UPDATE OCT 26: The above links are no longer broken, as I rebuilt the site using 0.16 on El Capitan. |
@abourget I believe this is your logic. |
I investigated this behaviour on a recent version db86f48 by simple print-lining, relevant observations are listed below for a file named
|
Good and thorough analysis @vyuh .. I think you're right, last time I had my head into this, very few places read and tweaked those fields. Doing validity check on the @vyuh do you think you could propose a patch for that ? It'd be a great contribution I think :) I'd gladly review. btw, are you using Multilingual ? If not, then adding some simple checks for multilingual enablement, and sort of reverting to previous behavior when not enabled, would be a quick fix, wouldn't it ? |
changes: - in hugolib/page.go, `func permalink` and `func TargetPath` Fixed the attempt to *replace* the extension of something that was *already* a basename. - in source/file.go, `func NewFile` added check for allowed languages before translating filename Fixes #2555
changes: - in hugolib/page.go, `func permalink` and `func TargetPath` Fixed the attempt to *replace* the extension of something that was *already* a basename. - in source/file.go, `func NewFile` added check for allowed languages before translating filename Fixes gohugoio#2555
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
On Hugo 0.16 the pages with dot in name were rendering correctly.
With Hugo 0.17 pages with dot in their name won't render. With
hugo server
I get onlyin output.
However when doing a build of site with
hugo
the name of page with dot get stripped down to the first dot. The content of the page is correct though.The text was updated successfully, but these errors were encountered: