I'm attempting to remove the query strings parameters displayed in the browser url:
https://foo.bar?key=value
Is it possible to modify GET (query strings) parameters at refresh in Symfony controller without redirection? For example:
public function testAction(Request $request): Response
{
$request->query->get('test'); //output: query string parameter named test
//some way to change the GET parameters
return new Response();
}
How to remove 'test' parameter on refresh? Obviously, I can remove the parameter from a request, but it doesn't affect the response. I believe problem is that don't have a deep understanding of how is request passed to response in Symfony.