-
-
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
Tag ".net" creates invalid pagination #2110
Comments
I suspect this is fixed in Hugo 0.16-DEV, though. You are using hugo 0.15, right? |
Yeah, sorry. Forgot to include the version number. This was 0.15. I'll see if I can get it built locally and re-test. Would that be the |
No, it's the |
This is also an issue for me on 0.16. |I have tag of "tags": [
"Node.js"
] The initial page is ok |
The path helper incorrectly transforms valid urls causing issues with pagination. One example is `.net` http://localhost:1313/tags/.net/ to http://localhost:1313/tags/index.net/page/2 The commit adds a regex test to check for `.xml` or `.html` extensions and applies the transformation on a match. This allows valid URLs like /foo/index.html/bar to also be passed through. Fixes gohugoio#2110
This issue has been automatically marked as stale because it has not been commented on for at least four months. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, and you feel that it is still valuable, please open a proposal at https://discuss.gohugo.io/. This issue will automatically be closed in four months if no further activity occurs. Thank you for all your contributions. |
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't. If this is a bug and you can still reproduce this error on the latest If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. |
hey @bep. tested this against I have created a test case repository here with replication steps. |
This is a pretty fundamental change in Hugo, but absolutely needed if we should have any hope of getting "multiple outputs" done. This commit's goal is to say: * Every file target path is created by `createTargetPath`, i.e. one function for all. * That function takes every page and site parameter into account, to avoid fragile string parsing to uglify etc. later on. * The path creation logic has full test coverage. * All permalinks, paginator URLs etc. are then built on top of that same logic. Fixes gohugoio#1252 Fixes gohugoio#2110 Closes gohugoio#2374 Fixes gohugoio#1885 Fixes gohugoio#3102 Fixes gohugoio#3179 Fixes gohugoio#1641 Fixes gohugoio#1989
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. |
I'm working on creating a blog and as a .NET programmer, a lot of my posts will be tagged with ".net". I noticed that when generating a paginator for this tag, the link to the next page is incorrect.
The initial page is generated as:
But the "Next" link is:
When it should be:
Not sure where the extra "index" is coming from.
The text was updated successfully, but these errors were encountered: