-
Notifications
You must be signed in to change notification settings - Fork 909
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
Broken URLs since Hugo 101 due to leading slash and relURL #1114
Comments
Thanks for spotting that, does it look like this is a permanent breaking change in Hugo that we'll need to work around/update or something that's likely to go away in a future version? |
As far as I understand from the conversation in the links above, the old behavior (Hugo <101) was an unwanted behavior now fixed. Here is a good summary of how things are now implemented: |
Thanks for the detailed report @Marzal! I'm investigating. |
From #1127 (comment), @Marzal wrote:
From the tests that I've run, surprisingly "/" seems to still work, but that seems odd. Thanks for the reference, I'll give |
I don't believe that there are any further changes necessary to address this issue. So I consider it closed by #1134. |
Since Hugo 101, if you use a leading slash in a path with relURL, Hugo will not prepend the baseURL directory as documented in this issue gohugoio/hugo#10049
For context, see:
I only have seen problems in 101 with
But I suppose that at least these could have the same problem
https://github.com/google/docsy/blob/main/layouts/partials/scripts.html#L74
https://github.com/google/docsy/blob/main/layouts/partials/head.html#L41
https://github.com/google/docsy/blob/main/layouts/partials/community_links.html#L17
https://github.com/google/docsy/blob/main/layouts/404.html#L5
https://github.com/google/docsy/blob/main/layouts/swagger/baseof.html#L6
https://github.com/google/docsy/blob/main/layouts/swagger/baseof.html#L25
https://github.com/google/docsy/blob/main/layouts/swagger/baseof.html#L26
Tasks:
The text was updated successfully, but these errors were encountered: