Wrong navigation when the website isn't located at the root of a domain
7heo opened this issue · comments
Description
The navigation to the root of the website is bogus when the website isn't located at the root of a given domain (e.g. https://domain.tld/website/
).
How to reproduce
- Create a new hugo website with
hugo new site some_name
. - Install the yourfolio theme via git, following the instructions at https://github.com/serg/yourfolio#installation.
- Configure the website's
BaseURL
inconfig.yaml
tohttps://domain.tld/website/
. - Build the website.
- Place the newly built website in the directory served at
https://domain.tld/website/
. - Navigate to the address
https://domain.tld/website/
with a browser. - Click on the website logo.
❌ What is happening:
The user is brought back to the root of the domain (e.g. https://domain.tld/
).
✔️ What is expected:
The user is brought back to the root of the website (e.g. https://domain.tld/website/
).