Project

General

Profile

Actions

Bug #91774

open

Site configuration base changes are not observed for page redirect source URLs

Added by Oliver Eglseder almost 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-07-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
sys_redirects, site
Complexity:
Is Regression:
Sprint Focus:

Description

Setup:
  • Site with empty ("/") base.
  • A page in the page tree within the site.
Steps to reproduce
  • Change the site base to a full qualified URL (like "https://example.com")
  • Change the slug of a page in the page tree
What happens:
  • A redirect with the source_host of the current page will be created.
What should happen instead:
  • The source_host of the created redirect must be "*", because the original URL of the page did not resolve to any specific domain.
Example:
  • Site with base "/" and page with slug "/foo" can be accessed with any domain and path /foo
  • After the site base changed the page can only be accessed with the new base. The new page url is "https://example.com/foo"
  • The redirect must therefore redirect from "http(s)://*/foo" to "https://example.com/foo"
  • BUT: The source_host of the generated redirect includes the new domain, which prevents redirects from matching any other previous host/domain.
Implications:
  • The generation of redirects has to check the last valid URL of the page before any change has been made to the page and its site.

No data to display

Actions

Also available in: Atom PDF