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

404 not handled correctly with multilingual websites when defaultContentLanguageInSubdir enabled #3151

Open
2 tasks done
CravateRouge opened this issue Oct 6, 2024 · 0 comments

Comments

@CravateRouge
Copy link

Preliminary Checks

Description

When setting defaultContentLanguageInSubdir: true, 404 error at the website roots are not handled correctly because hugoblox doesn't generate a 404.html at the root. Then it's the server 404 error page instead of hugoblox default one.

Reproduction Link

https://github.com/CravateRouge/CravateRouge.github.io

Steps to Reproduce

  1. Set defaultContentLanguageInSubdir: true in hugo.yaml
  2. Put all website content into content\en
  3. Remove public folder and relaunch hugo server
  4. Access to a non existing page of the website e.g. example.com/blabla and you'll see the server error page instead of the hugoblox one
    ...

Expected Result

We should have the standard hugoblox 404 page:

image

Actual Result

We have the default 404 server page:

image

What Hugo Module versions does your site use?

module github.com/HugoBlox/theme-landing-page

go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
)

What operating system(s) are you seeing the problem on?

Windows, Android, iOS, Linux

What browser(s) are you seeing the problem on?

Firefox, Microsoft Edge

Which Hugo Blox template are you using?

Landing Page

What version of Hugo are you using?

0.126.3

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

No branches or pull requests

1 participant