Prevents menu links returning 404 when staging PRs #42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "relative-paths-staging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Managed to reproduce the issue with staging PRs, where menu links return 404 by running
hugo serve -b http://localhost:1313/pr123:The
zentheme useshref="{{ .URL | relLangURL }}"by default: https://github.com/frjo/hugo-theme-zen/blob/main/layouts/_partials/menu.html#L5Replacing it with
href="{{ .URL }}"resolves the issue.You can view your changes at https://staging.hackertours.hamburg.ccc.de/pr42/
Prevents menu 404 links when staging PRsto Prevents menu links returning 404 when staging PRsLGTM