You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create a request object or parse the URL$request = \Symfony\Component\HttpFoundation\Request::create($urlWithoutToken);
// or get the current request.// $request = $event->getRequest();
Add new query parameter to URL
// Get current query parameters$queryParams = $request->query->all();
// Add the new query parameter$queryParams['no_redirect'] = 1;
// Build the new URL with the updated query string$newUrl = $request->getSchemeAndHttpHost()
. $request->getPathInfo()
. '?'
. http_build_query($queryParams);