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

Permalink for language-roots wrong when uglyURLs is true #3179

bep opened this Issue Mar 14, 2017 · 0 comments


None yet
1 participant
Copy link

bep commented Mar 14, 2017

There is even a test for it:

  • So de becomes /de.html
  • Should be /de/index.html

@bep bep added the Bug label Mar 14, 2017

@bep bep added this to the v0.20 milestone Mar 14, 2017

@bep bep self-assigned this Mar 14, 2017

@bep bep referenced this issue Mar 14, 2017


Add custom output formats #2828

26 of 26 tasks complete

bep added a commit to bep/hugo that referenced this issue Mar 27, 2017

hugolib: Refactor/-work the permalink/target path logic
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

@bep bep closed this in 6bf010f Mar 27, 2017

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