Hi! i've this problem in my MVC App.
i have base uri of the Url service set to "/"
now, if i generate an URI with the Url service for a specific action, the generated relative uri is correct.
put the result is
but when i use $this->response->redirect($red) the redirect fail as it set a wrong location header, infact i can see it set "location: //aa/bb" (note the double initial slash)
Actually i can't use the automatic url generation of the response->redirect method as i need to add a querystring to the redirect URL so i need to pass a string that is a relative url to my website just like "/aa/bb?params=1".
PS. It would be nice in the next version of Phalcon 1.x to have some method or implicit mechanism to add querystring to urls generated by the Url service. For example in .NET all parameters that do not match the named route are automatically added as querystring in the url generated.