serg / yourfolio

:star: Super simple and responsive theme for your personal website on Hugo
https://themeslake.com/theme/yourfolio/
MIT License
41 stars 23 forks source link

Wrong navigation when the website isn't located at the root of a domain #4

Closed 7heo closed 4 years ago

7heo commented 4 years ago

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

  1. Create a new hugo website with hugo new site some_name.
  2. Install the yourfolio theme via git, following the instructions at https://github.com/serg/yourfolio#installation.
  3. Configure the website's BaseURL in config.yaml to https://domain.tld/website/.
  4. Build the website.
  5. Place the newly built website in the directory served at https://domain.tld/website/.
  6. Navigate to the address https://domain.tld/website/ with a browser.
  7. Click on the website logo.

:x: What is happening:

The user is brought back to the root of the domain (e.g. https://domain.tld/).

:heavy_check_mark: What is expected:

The user is brought back to the root of the website (e.g. https://domain.tld/website/).