Project

General

Profile

Actions

Bug #104524

open

Frontend routes for non-enabled languages are registered

Added by Tim Weisenberger 5 months ago. Updated 3 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2024-08-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

In the definition of languages via the site configuration, it is possible to deactivate specific languages in the frontend via the configuration property enabled. Regardless of the value of the configuration property, the SiteMatcher registers the base as a route, which means that if the same base is used by several languages (e.g. an activated and a deactivated language), it is not clear for which language the route will be registered. And in the worst case, the activated language is not available in the frontend, as the route is already used by the non-enabled language.

As it is described in the documentation (https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/SiteHandling/AddLanguages.html#confval-sitehandling-addinglanguages-enabled) that the visibility in the frontend is influenced by the configuration property enabled, the expected behavior should be that the route is only registered for enabled languages.

Actions #1

Updated by Gerrit Code Review 5 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85445

Actions #2

Updated by Garvin Hicking 5 months ago

  • Category changed from Frontend to Site Handling, Site Sets & Routing
Actions #3

Updated by Gerrit Code Review 3 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85445

Actions

Also available in: Atom PDF