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 variable gets extra ".html" with uglyURLs=true #2819

Closed
heavywatal opened this Issue Dec 22, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@heavywatal

heavywatal commented Dec 22, 2016

Hugo 0.18 with uglyURLs=TRUE adds an extra .html to variables such as .URL and .RelPermalink in list.html and terms.html.

template
<a href="{{ .URL }}">{{ .Title }}</a>

0.17 product
<a href="/tags/python.html">Python</a>

0.18 product
<a href="/tags/python.html.html">Python</a>

No _index.md for those pages exist yet. My current workaround is to use 0.17 or replace function.

Thanks.

@bep bep changed the title from .URL variable gets extra ".html" with uglyURLs=true and 0.18 to .URL variable gets extra ".html" with uglyURLs=true Dec 22, 2016

@bep bep added the Bug label Dec 26, 2016

@bep bep added this to the v0.18.1 milestone Dec 26, 2016

moorereason added a commit to moorereason/hugo that referenced this issue Dec 27, 2016

@bep bep closed this in #2839 Dec 27, 2016

bep added a commit that referenced this issue Dec 27, 2016

@heavywatal

This comment has been minimized.

Show comment
Hide comment
@heavywatal

heavywatal Dec 27, 2016

I have confirmed that the problem is solved in HEAD now. Thank you, @moorereason and @bep !

heavywatal commented Dec 27, 2016

I have confirmed that the problem is solved in HEAD now. Thank you, @moorereason and @bep !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment