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

Front matter URL: two dashes get parsed into one - #6007

Closed
maximilian-lindsey opened this issue May 31, 2019 · 5 comments
Closed

Front matter URL: two dashes get parsed into one - #6007

maximilian-lindsey opened this issue May 31, 2019 · 5 comments
Labels

Comments

@maximilian-lindsey
Copy link

maximilian-lindsey commented May 31, 2019

Hi,

I discovered the following problem:
In my front matter I define a URL, let’s say:

url: my–test

What I would expect from to be the output of this would be a file called “my–test.html”.
Surprisingly the output is: "my**-**test.html.
Two dashes get turned into one, which is not what I would expect and need.
How I can prevent this from happening?

I run Hugo at version:
Hugo Static Site Generator v0.54.0/extended windows/amd64 (this happens also with Hugo 0.55.x as disscused here https://discourse.gohugo.io/t/front-matter-url-two-dashes-get-parsed-into-one/18979)
and configured it to use

canonifyURLs: true

Thanks for your help and best wishes,
Max

@bep
Copy link
Member

bep commented May 31, 2019

How I can prevent this from happening?

I don't think you can do anything about it.

@maximilian-lindsey
Copy link
Author

OK, so it's a bug then, not a feature (like I expected)?

@bep
Copy link
Member

bep commented May 31, 2019

Let's take this at https://discourse.gohugo.io/t/front-matter-url-two-dashes-get-parsed-into-one/18979 -- I'm not a big fan of double posting.

@bep bep closed this as completed May 31, 2019
@onedrawingperday
Copy link
Contributor

Actually I pointed the user to open this issue since this behavior seems like a reproducible bug.

There was no double posting.

satotake added a commit to satotake/hugo that referenced this issue Nov 21, 2020
bep pushed a commit that referenced this issue Nov 21, 2020
satotake added a commit to satotake/hugo that referenced this issue Nov 24, 2020
docs: Regenerate docshelper

Revert "docs: Regenerate docshelper"

This reverts commit caf16c2.

Closes gohugoio#7972

watcher: Add file deleted by accident

See gohugoio#7972

resources: Preserve url set in frontmatter without sanitizing

related gohugoio#6007 (already closed)

Add menu params

Fixes gohugoio#7951

docs: Regen docshelper

build(deps): bump github.com/getkin/kin-openapi from 0.30.0 to 0.31.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](getkin/kin-openapi@v0.30.0...v0.31.0)

Signed-off-by: dependabot[bot] <support@github.com>
@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 Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants