Skip to content

Commit b16eb18

Browse files
committed
hugo: use menu element urls relative to the base url
By using relative URLs, which are resolved from the defined base url, the menu link will not be considered a remote link and will subsequently leave the link to be opened in the same page. The hugo resolved URL on build will be the same as the absolute variant. This helps to reduce future incompatibility by minimizing overwritten templates.
1 parent 77c46d3 commit b16eb18

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

website/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ theme = "hugo-book"
55

66
[[menu.before]]
77
name = "⬅️ Back to top"
8-
url = "https://uapi-group.org/"
8+
url = "/.."
99
weight = 1
1010

1111
[[menu.after]]

website/layouts/partials/docs/menu-hugo.html

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)