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

--uglyURLs option stopped working in Hugo 0.33 #4343

Closed
jmalonzo opened this issue Jan 28, 2018 · 3 comments
Closed

--uglyURLs option stopped working in Hugo 0.33 #4343

jmalonzo opened this issue Jan 28, 2018 · 3 comments
Milestone

Comments

@jmalonzo
Copy link

Hi,

I've recently upgraded to the latest release and it seems that passing --uglyURLs="true" in the cli doesn't work anymore - i.e., the value of uglyURLs is always 'false'. My workaround atm is to add uglyURLs = true to the config.

FYI this used to work in 0.30.x.

@bep
Copy link
Member

bep commented Jan 28, 2018

We will check this out, eventually, but having all these as CLI flags was probably a mistake, as it clutters up the CLI API. They belong in the config, and if you really want to do this you can pass it as OS env vars:

HUGO_UGLYURLS=true hugo

@bep bep added this to the v0.35 milestone Jan 28, 2018
@bep bep added the Bug label Jan 28, 2018
@bep bep changed the title --uglyURLs option stopped working --uglyURLs option stopped working in Hugo 0.33 Jan 28, 2018
@bep bep closed this as completed in 016398f Jan 28, 2018
@jmalonzo
Copy link
Author

Thanks very much @bep!

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

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 Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants