-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
preview_path not does not correspond to the real path #4963
Comments
I have this same error. I tried testing with different tags but {{filename}} doesn't even seem to work at all. |
The CMS escapes template variables since they can break URL structure. |
It is not an option for me to rebuild the link, as I add the slashes manually, so an option to opt out og that behavior would be great. |
This issue also happens with GatsbyJS. It's because of Any way to fix this? Maybe an undocumented templating tag specifically for nested folders path? |
/EDIT: there was a typo in my previous message, it's the |
To summarize the issue, for the moment there seems to be no way to set up adequately the |
If anyone would like to follow up with a PR to one of the suggestions in this comment it would be great. |
@erezrokah Please see my proposed solution. If it works for you, I'll add and update the tests. |
hugo version: 0.80.0
In editor path equal as
conversion-api/conversion-sdk-api/xhtml-converter
title:
XHTML converter
Preview link now as
netlify.app/html/conversion-api-conversion-sdk-api-xhtml-converter-_index
but must equal
netlify.app/html/conversion-api/conversion-sdk-api/xhtml-converter/
my config
The text was updated successfully, but these errors were encountered: