The page isn’t redirecting properly
Could be a redirect loop. You have to check whether the query string is already present and then stop redirecting again:

  public function redirectWithFilter(GetResponseEvent $event) {
    $request = $event-&gt;getRequest();
    if ($request-&gt;query-&gt;has('city')) {
      return;
    }
    ...
  }