Project

General

Profile

Actions

Bug #96421

open

Redirects module picks "some" site when linking to target in overview

Added by Christian Kuhn over 2 years ago. Updated 6 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Redirect Handling
Target version:
-
Start date:
2021-12-21
Due date:
% Done:

0%

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

Description

The redirects overview page behaves weird. The module is out-of site context (it has no page tree and no page, and single redirect records are not assigned to a page, either).

Scenario:

  • Create a new top level page. This will trigger the 'CreateSiteConfiguration' hook, which creates a 'autogenerated-xy' entry in site.
  • Delete that site again

-> When debugging typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php which has been changed with #96101, forceAbsoluteUrl is true.

This is because the site that is picked in this method is the now "dangling" autogenerated-xy entry that has been created for our new page.

In effect, the link generated for the redirect is broken - The 'target' has no information of the target site (?), so some broken link is generated in general for the existing redirect.

This seems to be a general problem that the linked target on the redirects overview page tends to pick a wrong target site, which leads to broken links.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96101: Redirects module fails to build URLs to content elementsClosed2021-11-27

Actions
Actions #1

Updated by Christian Kuhn over 2 years ago

  • Related to Bug #96101: Redirects module fails to build URLs to content elements added
Actions #2

Updated by Markus Klein 6 months ago

  • Category set to Redirect Handling
Actions

Also available in: Atom PDF