Skip to content

Suffix in entry point of default language results in wrong asset paths

We have a multi-language website (TYPO3 11.5.33) with the following Site Configuration:

base: 'https://%env(WWW_DOMAIN_COM)%/'
languages:
  -
    title: Deutsch
    base: /de/
    typo3Language: de
    languageId: 0
    # etc.
  -
    title: English
    base: /
    typo3Language: default
    languageId: 1
    # etc.

After updating from EXT:sg_cookie_optin v.5.3.3 to v5.3.7, the base suffix of the default language now will be added to the paths of the cookieOptin assets:

<link rel="preload" as="style" href="https://www.domain.com/de/fileadmin/sg_cookie_optin/siteroot-123/cookieOptin.css?1702364378" media="all" crossorigin="anonymous">
<link rel="stylesheet" href="https://www.domain.com/de/fileadmin/sg_cookie_optin/siteroot-123/cookieOptin.css?1702364378" media="all" crossorigin="anonymous">
<link rel="preload" as="script" href="https://www.domain.com/de/fileadmin/sg_cookie_optin/siteroot-123/cookieOptin.js?1702364378" data-ignore="1" crossorigin="anonymous">
<script src="https://www.domain.com/de/fileadmin/sg_cookie_optin/siteroot-123/cookieOptin.js?1702364378" data-ignore="1" crossorigin="anonymous"></script>
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information