Skip to content
Snippets Groups Projects
Commit 77c7fa0c authored by Can Adrian Karadag's avatar Can Adrian Karadag Committed by Christian Kuhn
Browse files

[BUGFIX] Proper URI generation in workspace preview for records

If a workspace is active, the URI for a record preview link did not consider to prefix additional arguments with a "&" separator.

Resolves: #103346
Releases: main, 12.4
Change-Id: I255c557593fab44482769c19f8c91d7f1980e20d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83395


Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 0561797d
No related merge requests found
......@@ -49,6 +49,9 @@ class BackendUtilityHook
->buildUriForWorkspaceSplitPreview($event->getPageId());
$queryString = $uri->getQuery();
if ($event->getAdditionalQueryParameters() !== []) {
if ($queryString !== '') {
$queryString .= '&';
}
$queryString .= http_build_query($event->getAdditionalQueryParameters(), '', '&', PHP_QUERY_RFC3986);
}
// Reassemble encapsulated language id as query parameter, to open workspace preview in correct non-default language
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment