hugo-coder icon indicating copy to clipboard operation
hugo-coder copied to clipboard

Missing Trailing slash in HomePage link when lang != default

Open itzwam opened this issue 1 year ago • 1 comments

Describe the problem:

Main page links to a relative path without the trailing Slash, cuz it's based on baseURL instead of site.Home

Steps to reproduce:

  1. Add 2 langs
  2. Serve built pages using a strict webserver
  3. Switch to another lang
  4. HomePage link in header is missing trailing slash -> 404

Observed Results:

  • Link to inexistant page

Expected :

  • Link to existant page

itzwam avatar Dec 12 '23 13:12 itzwam

image

Fixed in a PR

itzwam avatar Dec 12 '23 13:12 itzwam