Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Option to put default language in subfolder seems to have broken possibility to put default language in subfolder and in root folder #186

Open
sceee opened this issue Jan 22, 2021 · 2 comments

Comments

@sceee
Copy link

sceee commented Jan 22, 2021

In the past, I used a setup as described here:
#86 (comment)
#103 (comment)

Previously, I used a config like this

languages: ["en", "en", "de"]

to generate a folder structure as follows:

index.html // English index
en/index.html //English index - equals root index.html
de/index.html //German index

Now, I think since #170 and the added possibility for default_locale_in_subfolder: true, it seems this feature is no longer working.
(I guess it's because the check here https://github.com/kurtsson/jekyll-multiple-languages-plugin/pull/170/files#diff-df0ad4e0b34533f0e9e0da71b9bc9903f58a372667f8fe9360d414eb19f8ae83R164 )

I tried it with

languages: ["en", "en", "de"]
default_locale_in_subfolder: true

or

languages: ["en", "en", "de"]

or

languages: ["en", "en", "de"]
default_locale_in_subfolder: false

or

languages: ["en", "de"]
default_locale_in_subfolder: true

but it seems I can no longer put the default language (en) in the root and in a subfolder.

Is there any way to still achieve this folder structure?
Maybe @kurtsson you know a solution as it was your PR?

@awesomebloging
Copy link

+1 for this reason I have an empty home page

@s-gbz
Copy link

s-gbz commented Jun 12, 2022

I see no jekyll-only/javascript-viable workaround at the time, because the root directory is completly empty.
However, we can at least fix the issue by redirecting trafic from / to en via our hoster.
In case of Netlify one can consult https://docs.netlify.com/routing/redirects/redirect-options/

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

No branches or pull requests

3 participants