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 front matter variable does not override language parameter #6448

Closed
fritzmg opened this issue Oct 22, 2019 · 3 comments
Closed

url front matter variable does not override language parameter #6448

fritzmg opened this issue Oct 22, 2019 · 3 comments

Comments

@fritzmg
Copy link

fritzmg commented Oct 22, 2019

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.59.0-1DD0C69C windows/amd64 BuildDate: 2019-10-21T09:40:37Z

Does this issue reproduce with the latest release?

Yes.

The documentation says the following about the url front matter variable:

the full path to the content from the web root. It makes no assumptions about the path of the content file. It also ignores any language prefixes of the multilingual feature.

The highlighted part does not seem to be true any more, at least with Hugo 0.58.3 and 0.59.0.

For example, if you have the following file:

backend/_index.de.md

with the following front matter variables:

---
title: "Administrationsbereich"
url: "de/administrationsbereich"
weight: 3
---

Then the resulting URL will be de/de/administrationsbereich instead of de/administrationsbereich in a multilingual environment.

In Hugo 0.54.0 this works as described in the documentation.

May be this was a deliberate change (which I would prefer) and simply the documentation has not been updated.

@stale
Copy link

stale bot commented Feb 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Feb 19, 2020
@stale stale bot closed this as completed Mar 20, 2020
@fritzmg
Copy link
Author

fritzmg commented Mar 22, 2020

This is still an issue in Hugo 0.67.1. However, as I already said, may be it is just the documentation that needs to be changed (which I would prefer).

@github-actions
Copy link

github-actions bot commented Feb 5, 2022

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 Feb 5, 2022
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

1 participant