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

Rewrite relative action URLs #5701

cmjdev opened this Issue Feb 19, 2019 · 0 comments


None yet
2 participants
Copy link

commented Feb 19, 2019

When building a site for both local/remote consumption, hugo is not relativizing action properties on form objects. It works well in all other tests except for this.

<input action="/search.html"> renders <input action="/search.html">
<a href="/search.html"> renders <a href="../../search.html"> in the case of being two directories sub root.

Stylesheets and JS relativize just fine, it seems to be just the action property.

config.toml includes the following options

relativeURLs = true
uglyURLs = true

@bep bep added the Enhancement label Feb 19, 2019

@bep bep added this to the v0.56 milestone Feb 19, 2019

@bep bep changed the title Form Actions not Relativized Rewrite relative action URLs Feb 19, 2019

larson004 added a commit to larson004/hugo that referenced this issue Feb 26, 2019

@bep bep modified the milestones: v0.56, v0.55 Feb 26, 2019

@bep bep closed this in #5717 Feb 26, 2019

bep added a commit that referenced this issue Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.