You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem occurs in layouts/partials/theme/logo.html, and is likely caused by passing the .Site.Home.RelPermalink variable to the relLangURL function. Because relLangURL will already include the root, it would appear to be sufficient to pass an empty string instead. For example:
{{"" | relLangURL}}
The text was updated successfully, but these errors were encountered:
When the base URL of the website is configured with a path, the path portion of the logo's URL will be duplicated.
Reproduction:
config.toml
, set thebaseURL
to"https://example.com/foo/bar"
.hugo serve
.The result is that the page incorrectly navigates to http://localhost:1313/foo/bar/foo/bar/ instead of http://localhost:1313/foo/bar/.
The problem occurs in layouts/partials/theme/logo.html, and is likely caused by passing the
.Site.Home.RelPermalink
variable to therelLangURL
function. BecauserelLangURL
will already include the root, it would appear to be sufficient to pass an empty string instead. For example:The text was updated successfully, but these errors were encountered: