Skip to content
Snippets Groups Projects
Commit 6ddcea3c authored by Jacob Rockowitz's avatar Jacob Rockowitz Committed by Seth Hill
Browse files

Issue #3468130 by jrockowitz, sethhill: Allow query string parameters to be...

Issue #3468130 by jrockowitz, sethhill: Allow query string parameters to be passed from the add node form to mercury editor
parent 6675de5a
Branches
Tags
1 merge request!59Issue #3468130: Allow query string parameters to be passed to node form to mercury editor
......@@ -78,14 +78,15 @@ class MercuryEditorHtmlEntityFormController extends FormController {
// If entity type / bundle is ME enabled:
if (isset($bundles[$entity_type_id][$bundle_id])) {
$this->tempstore->set($entity);
$request->query->remove('destination');
$params = [
'mercury_editor_entity' => $entity->uuid(),
];
$query = $request->query->all();
// Remove the destination parameter from the query to prevent
// the destination redirect from being triggered.
$request->query->remove('destination');
$options = [
'query' => [
'destination' => $request->get('destination'),
],
'query' => $query,
];
return new RedirectResponse(Url::fromRoute('mercury_editor.editor', $params, $options)->toString());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment