When opening a modal with custom URL parameters, the parameters are lost. This is caused by the following code in IframeRenderer::renderResponse
:
// Set the destination query parameter to our custom redirect route.
$iframe_src->setOption('query', [
'destination' => Url::fromRoute('layout_builder_iframe_modal.redirect')->toString(TRUE)->getGeneratedUrl(),
]);
Change the code in IframeRenderer::renderResponse
to add the destination parameter to the existing query parameters, instead of overwriting the entire query.
None
None
None
Needs review
1.3
Code