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

URL issue in menu for section page #2770

Closed
bep opened this issue Dec 9, 2016 · 1 comment · Fixed by #2773
Closed

URL issue in menu for section page #2770

bep opened this issue Dec 9, 2016 · 1 comment · Fixed by #2773
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Dec 9, 2016

This looks like a bug -- incorrect URL for sections added to menus. Where I have /articles/_index.md:

---
title: Archive
menu: main
---

and I render the menu:

{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}

The value of .URL for this section is / -- the root, where it should be /articles/.
@bep bep added this to the v0.18 milestone Dec 9, 2016
@bep bep self-assigned this Dec 9, 2016
@bep bep added the Bug label Dec 11, 2016
bep added a commit to bep/hugo that referenced this issue Dec 11, 2016
By delaying the menu assembly.

Fixes gohugoio#2770
@bep bep closed this as completed in #2773 Dec 11, 2016
bep added a commit that referenced this issue Dec 11, 2016
By delaying the menu assembly.

Fixes #2770
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant