New answers tagged

1

Old question, but if it helps someone : $event->setResponse(new RedirectResponse(Url::fromUri('mypage', ['fragment' => 'actions_clicker')); Or with a route : RedirectResponse(Url::fromRoute('entity.node.canonical', ['node' => $node->id()], ['fragment' => 'my-anchor'])->toString()); Note: Url is from namespace \Drupal\Core\Url


Top 50 recent answers are included