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

resources: Preserve url set in frontmatter without sanitizing #7974

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

satotake
Copy link
Contributor

For now, url set in frontmatter is sanitized.
This PR tweak the behavior to preserve user-defined url value, skipping sanitization.
This is consistent with aliases' manner.

in my case

I am maintaining a site, where hugo's version is relatively old.
The site has some contents, of which urls are containing "double dash" like foo--1.md.
I need any workaround to keep these urls with latest version of hugo.

related #6007 (already closed)

@bep bep merged commit e4fcb67 into gohugoio:master Nov 21, 2020
@satotake satotake deleted the preserve-url-in-frontmatter branch November 24, 2020 19:07
@github-actions
Copy link

This pull request 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 Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants