Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Navbar nests links and results in 404 error #269

Closed
Fenugreek opened this issue Apr 10, 2020 · 3 comments
Closed

[Bug] Navbar nests links and results in 404 error #269

Fenugreek opened this issue Apr 10, 2020 · 3 comments
Labels

Comments

@Fenugreek
Copy link
Contributor

Expected behavior

Clicking on "Guests" on the nav bar followed by "Hosts" on the nav bar should take you to
<baseURL>/host

Actual behavior

Taken to
<baseURL>/guest/host
instead, resulting in a 404 error.

Reproduction Steps

Go to my website that's running my up-to-date branch of castanet subburam.org/podcast
Click on 'Guests' and then 'Host' on the Navbar.

Operating System and Version

ArchLinux

Web Browser and Version

Firefox 74.0

Hugo Version

0.68.3

@mattstratton
Copy link
Owner

mattstratton commented Apr 13, 2020

yeah, the thing you need to do is prepend the path in the menu with a "/", like this:

https://github.com/arresteddevops/ado-hugo/blob/master/config.toml#L28

I don't remember why, but there is a reason that the root slash isn't handled by the theme (if I think about it I might remember).

I'm not going to close this issue, because I want to do some more research, but for the time being, that fix will work for you!

GitHub
Source code for the ADO website. Contribute to arresteddevops/ado-hugo development by creating an account on GitHub.

@Fenugreek
Copy link
Contributor Author

Cool, thanks for providing me with a quick fix--adding the slash worked. Might just be user error on my part!

@mattstratton
Copy link
Owner

I think this can be closed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants