Issue Bug Accepted Orphaned

#94670Redirects module: RecordLinkHandler can't resolve storagePid if value is site configuration variable

Benjamin Gries Gries 07/30/21, 09:29 updated 08/02/23, 13:05

Description

We found out that the Redirects module can’t handle it if a site configuration variable (so for example storagePid = {$pids.news}) is used for the storagePids in the linkHandler instead of a hardcoded UID (so for example storagePid = 5).

The main problem is that in the context of the redirects module the getPagesTSconfig function of the BackendUtility has PID 0 (because the redirects are on PID 0), therefore no (default) page configuration is found and accordingly the parsing of the TSConfig cannot take place correctly.

The corresponding variable in the RecordLinkHandler ($this->expandPage) falls back to pid 0 (because the redirects are on PID 0, see above), which is adverse for non-admin users because they are not allowed to access the page. The non-admin user cannot use the LinkHandler accordingly.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Redirects module: RecordLinkHandler can't resolve storagePid if value is site configuration variable Resolves: #94670 Releases: main