serg / yourfolio

:star: Super simple and responsive theme for your personal website on Hugo

Home Page:https://themeslake.com/theme/yourfolio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

7heo opened this issue · comments

commented

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.

❌ 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/).