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

theme: disableExplicitIndexURLs param is not working as expected #505

Closed
membrive opened this issue Mar 23, 2023 · 2 comments
Closed

theme: disableExplicitIndexURLs param is not working as expected #505

membrive opened this issue Mar 23, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@membrive
Copy link

membrive commented Mar 23, 2023

Hi everyone,

I am trying to configure disableExplicitIndexURLs parameter in my new Hugo+Relearn setup. I am using the latest Relearn theme version and Hugo v0.111.3, deployed in Netlify.

My hugo.toml looks like the following:

baseURL="https://mydomain.com"
canonifyURLs=true
relativeURLs=true
uglyURLs=false

[params]
  disableExplicitIndexURLs = true

What I am trying to achieve is urls of this kind:

  • https://mydomain.com/url1/
  • https://mydomain.com/url2/
  • ...

But in the menu links I see am getting instead:

  • https://mydomain.com/url1/index.html
  • https://mydomain.com/url2/index.html
  • ...

Following the documentation, I supposed that disableExplicitIndexURLs=true would remove those index.html from the URL in the menus, but I see them and when I access the links, the index.html is also not removed from the URL.

By other hand, if I manually type https://mydomain.com/url1/, it works and the index.html is not appended.

Am I missing something? Or I am facing a real issue?

Thanks in advance.

@McShelby McShelby self-assigned this Mar 24, 2023
@McShelby McShelby added the bug Something isn't working label Mar 24, 2023
@McShelby McShelby added this to the 5.12.4 milestone Mar 24, 2023
@McShelby McShelby changed the title disableExplicitIndexURLs param is not working as expected theme: disableExplicitIndexURLs param is not working as expected Mar 24, 2023
@McShelby
Copy link
Owner

Fixed in 5.12.4. Thanks for reporting!

@membrive
Copy link
Author

It works now. Great job @McShelby! Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants