Bug #88902

Redirects are not resolved if there is a base path in default site

Added by Georg Großberger 14 days ago. Updated 14 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-08-03
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If a site has a path in its base URL, any redirect, not containing this base path, will never be hit, because the redirect to the base is done before.

How to reproduce:

1. Have a site with a path in its base URL, eg.: if the default language is EN, set its base to "/en"

2. Add a redirect which does not start with "/en", eg.: "/about" -> "/en/company/about-us"

Affects: master (v10) and v9

History

#1 Updated by Georg Ringer 14 days ago

  • Status changed from New to Accepted

#2 Updated by Gerrit Code Review 14 days ago

  • Status changed from Accepted to Under Review

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

#3 Updated by Georg Großberger 14 days ago

I'm unsure about the patch, because it puts the redirects even before the static routes. This can be good, but may be not in other cases. Would need definition, which is more important for TYPO3.

#4 Updated by Gerrit Code Review 14 days ago

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

Also available in: Atom PDF