- πΊπΈUnited States Chris Burge
π Allow form redirects to ignore ?destination query parameter Fixed was committed and released in D10.2.0: https://www.drupal.org/node/3375113 β
Here's the code I used to attempt to implement the fix:
function layout_builder_operation_link_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { if ($form_state->getFormObject() instanceof \Drupal\layout_builder\Form\OverridesEntityForm) { $form_state->setIgnoreDestination(); } }
I confirmed with my IDE that
->setIgnoreDestination()
is firing; however, the destination query parameter is still being rendered. I don't believe the "fix" addresses the use case for operation links. I think we might just need to update the comment inlayout_builder_operation_link_preprocess_links()
to remove the reference to the core issue we were waiting on.