Closed nicgordon closed 9 years ago
Line 279 of EventListener/RequestListener.php reads
return $this->redirectConf[$platform]['host'] . $this->container->get('request')->getRequestUri() . '?' . Request::normalizeQueryString(http_build_query($queryParams));
The problem is that the returned value from $this->container->get('request')->getRequestUri() includes the query string from the original request.
$this->container->get('request')->getRequestUri()
So a url like http://example.com/?foo=bar gets redirected to http://m.example.com/?foo=bar?device_view=mobile&foo=bar
http://example.com/?foo=bar
http://m.example.com/?foo=bar?device_view=mobile&foo=bar
Thanks for the report! This should be fixed in v0.10.1.
v0.10.1
Thanks!
Line 279 of EventListener/RequestListener.php reads
The problem is that the returned value from
$this->container->get('request')->getRequestUri()
includes the query string from the original request.So a url like
http://example.com/?foo=bar
gets redirected tohttp://m.example.com/?foo=bar?device_view=mobile&foo=bar