-
I have this theme on a test site at http://example.com/hugo , yet I found in the config.toml if I had as the baseURL = http://example.com/hugo , a lot of the links had ..hugo/hugo in them, so I just have the baseURL as http://example.com It all works fine except for the 'credits', it should be resolving to http://example.com/hugo/credits , yet it is resolving to http://example.com/credits and of course nothing is displayed. The "credits" link works fine locally, as do all links. I notice the /credits/ path resolves correctly at https://relearn.netlify.app/credits/ This is no big deal, as I'm slowly replacing a lot of the content with the blog content for the site. (In all cases, example.com is replaced with the real domain name) |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
I did a quick research. Internally the theme mangles the URL thru Although I did not find an issue in the Hugo repo for this case, the Hugo forum may be a better place to ask for support. |
Beta Was this translation helpful? Give feedback.
-
@McShelby - Thanks for looking into this. It is actually two instances of the links not resolving correctly, just under the MORE, the /showcases and /credits . Looking at the /exampleSite/Public/index.html file , for those two links, the code generated is
and
the links are hard coded, so to speak. Whereas all the other links (which resolve correctly), are of the format
I have to make the baseURL as http://example.com , and then when testing, go to http://example.com/hugo , and then it all resolves correctly (except /showcase and /credits). Using the /credits/ path as an example, I assume that if the code was ...
it would resolve correctly ? This is only an issue when I have the theme at http://example.com/hugo ; I hope to test it soon in http://example.com |
Beta Was this translation helpful? Give feedback.
-
You may mean, they are absolutly addressed - and that's correct. Nevertheless, the links are generated by Hugo. It works as followed: The theme generates the menu from inside So basically there is no modification done to the URL by the theme itself. It completly relies on Hugo mechanisms. |
Beta Was this translation helpful? Give feedback.
-
Yes, absolutely.
Okay, thanks for explaining that. |
Beta Was this translation helpful? Give feedback.
-
The BaseURL issue sorted itself out when I uploaded the theme to https://example.com |
Beta Was this translation helpful? Give feedback.
-
Same problem here .
The problem with absLangURL is that it gives the same adress with or without subdomain , and therefore the error 404 |
Beta Was this translation helpful? Give feedback.
-
Please provide your |
Beta Was this translation helpful? Give feedback.
-
A complete fix is available with #120 - although it's still a Hugo bug (or just awkward). |
Beta Was this translation helpful? Give feedback.
A complete fix is available with #120 - although it's still a Hugo bug (or just awkward).