Problem/Motivation
When the module is installed on a site, it tries to find a prefix but doesn't seem to manage and thus fails, merely adding an additional slash to an existing url, leading to a too many redirects error in the browser.
Steps to reproduce
Attempt to install module on a site with one language active, note how url changes to try and accommodate that language but does not add a prefix, merely adding leading to two // being present and the site trying to redirect between the / and // version of the page, leading to a "too many redirects" error.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 0001-Fix-redirect-loop-if-config-is-missing.patch | 907 bytes | nkoporec |
Issue fork single_language_url_prefix-3420058
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
nkoporecHad the same issue, this happens if you don't configure the langcode for the single
language in system, which is located at admin/config/regional/language/detection/url , you need to add a prefix for the default language.
I'm also adding a patch that fixes the error, since its a fatal error if user doesn't configure that, so we need to add a check before adding a path prefix.
Comment #3
nkoporec