Upon install site stops working due to too many redirects

Created on 8 February 2024, 5 months ago
Updated 4 April 2024, 3 months ago

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.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @showardclark
  • 🇸🇮Slovenia nkoporec Slovenia

    Had 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.

  • Status changed to Needs review 3 months ago
  • 🇸🇮Slovenia nkoporec Slovenia
Production build 0.69.0 2024