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

Localized 404 page #177

Open
GPayton20 opened this issue Oct 20, 2023 · 0 comments
Open

Localized 404 page #177

GPayton20 opened this issue Oct 20, 2023 · 0 comments

Comments

@GPayton20
Copy link

Hello, thank you for the plugin!

I am running into an issue testing with localized error pages. The plugin does generate a localized 404.html file in the expected language directory. However when running the project build and navigating to a non-existent page, the default-language 404 page is always shown, even if the attempted path seems like it should lead to the localized page.

For example, /es/not-a-page displays /404.html rather than /es/404.html

As the error page is relatively small, I have considered dynamically swapping the page content at runtime using the url path to determine the language that should be displayed. However, components like and no longer work in this case, as they only read the locale set by the plugin and cannot be reconfigured to read the url path instead.

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

No branches or pull requests

1 participant