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

Redirect to a specific page/URL when there is no translation for a post #223

Closed
ampuEus opened this issue Dec 29, 2024 · 2 comments
Closed
Labels

Comments

@ampuEus
Copy link

ampuEus commented Dec 29, 2024

I have seen that if a post does not exist in a specific language user is redirected to the post of the default_lang on _config.yml.

If the post does not exist on default_lang, it seems that another translation is chosen, but it does not follow the order of the languages array on _config.yml. I am correct?

Is there a possibility of going to a specific page that says that the translation in that language does not exist?

@untra
Copy link
Owner

untra commented Jan 10, 2025

Hey there @ampuEus

It's entirely possible to design a fallback page that says "this page does not exist for this language", but then that fallback page would be served for your default language site. This seems entirely antithetical to the goal of polyglot, which is to ensure there exists matching content and pages for all languages that would otherwise fallback to your default lang site. It would be the same work to stub out a fallback "this page does not exist" in your default lang as it would be to just make that page.

@untra untra added wontfix and removed cant help labels Jan 10, 2025
@ampuEus
Copy link
Author

ampuEus commented Jan 23, 2025

Thanks for the explanation

@ampuEus ampuEus closed this as completed Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants