-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Phalcon\Http\Response::redirect() #1182
Comments
I used the function like following to escape from bug. $response->redirect('foo/bar', true); |
Response class only calls $this->getDi()->get('url')->get($url). The actual concatenation is happening here: Line 190 in ea95b05
I'm note sure though what changing this place may also affect. If it's not affecting much, I may try to fix it later. |
Can you try $this->getDi()->get('url')->setBaseUri(""); in the bootstrapping file. Would it fix your issue? |
$response->redirect("http://google.com", true); |
@tugrul External redirects (where the URL explicitly specifies the protocol) no longer require $external parameter — in this case Phalcon automatically detects that the redirect is external. |
@phalcon @andresgutierrez |
I use this |
Prepends "/" character internally.
following cases relevant to browser's behavior
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: