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

v0.112.6 - The .URL menu variable ignores the baseURL subdirectory #11062

Closed
jmooring opened this issue Jun 2, 2023 · 1 comment
Closed

v0.112.6 - The .URL menu variable ignores the baseURL subdirectory #11062

jmooring opened this issue Jun 2, 2023 · 1 comment

Comments

@jmooring
Copy link
Member

jmooring commented Jun 2, 2023

config

baseURL = "https://example.org/foo/"

[[menu.main]]
name = 'Posts'
url = '/posts'

template

{{ warnf "%s" (index site.Menus.main 0).URL }}

v0.111.3 --> /foo/posts (CORRECT)
v0.112.6 --> /posts

This is not an issue if you specify pageRef instead of url in the menu entry definition, but I suspect (unfortunately) that the vast majority of live sites use url instead of pageRef.

Related: https://discourse.gohugo.io/t/issue-with-baseurl-in-0-112-0-0-112-6/44656/

@jmooring jmooring changed the title v0.112.6 - The .URL menu variable ignoresthe baseURL subdirectory v0.112.6 - The .URL menu variable ignores the baseURL subdirectory Jun 2, 2023
@bep bep removed the NeedsTriage label Jun 2, 2023
@bep bep added this to the v0.112.7 milestone Jun 2, 2023
bep added a commit to bep/hugo that referenced this issue Jun 2, 2023
@bep bep closed this as completed in 5e5ce00 Jun 2, 2023
@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 Jun 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants