baseurl does not work in generated page header #2758
Replies: 4 comments 2 replies
-
This is correct, Hugo is generating best-practice relative URLs to the What is the issue that you are experiencing with relative URLs? |
Beta Was this translation helpful? Give feedback.
-
Relative URL does not work in the In other sections, relative URL works well. For example, in the same page, Hugo correctly generates: |
Beta Was this translation helpful? Give feedback.
-
Yes, it still generated the wrong url.
------------------ Original ------------------
From: ***@***.***>;
Date: Tue, Jun 28, 2022 09:56 PM
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Subject: Re: [wowchemy/wowchemy-hugo-themes] baseurl does not work in generated page header (Discussion #2758)
Did you add a slash (/) at the end of your baseURL in config.yaml?
Hugo doesn't always generate the expected relative URLs if the baseURL doesn't have a slash at the end like https://mysite.com/folder/
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
According to google/docsy#1114 , a bug fix in Hugo 0.101 causes bugs in downstream projects. For the header issue, I think the following lines should be fixed. https://github.com/wowchemy/wowchemy-hugo-themes/blob/ed6595aae61a782fb4f4f92329e432ecd932a0db/modules/wowchemy/layouts/partials/navbar.html#L22 |
Beta Was this translation helpful? Give feedback.
-
A generated page example is like this.
I have used a baseurl, however, the generated url in a page header is "/"
Beta Was this translation helpful? Give feedback.
All reactions