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

Is possible to put default language result in non-root path? #306

Open
cebarobot opened this issue May 11, 2024 · 1 comment
Open

Is possible to put default language result in non-root path? #306

cebarobot opened this issue May 11, 2024 · 1 comment

Comments

@cebarobot
Copy link

Hi,

I found that there is a breaking change in v1.0.0:

selected language with default: true will only be built on the root path of the site (to avoid SEO duplicate content)

I wonder whether it is possible to only build default language to non root path? In this way, freely changing the default language without worrying about URL corruption could be possible.

Thanks a lot.

@Frettman
Copy link

I'm in a similar situation where I need to treat the default language differently because its URL diverges from the pattern of non-default languages. Markdown links are adapted automatically but making e.g. links work in places where you can't use Markdown syntax is a head scratcher. At least in templates a variable for the default language would be useful to compare the i18n_page_locale with. Maybe even an extended base_url that already includes the language where required.

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

2 participants