-
Notifications
You must be signed in to change notification settings - Fork 13
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
Redirect does not work in Laravel 5.4 #17
Comments
Hi @tranghaviet, You can read these instructions to get Turbolink's redirection working. Have a good day, |
I read the instruction and did the following things:
And my
My
My |
Hi @tranghaviet, You should remove the |
I have the same issue in Laravel 5.5. I think I've tracked it down to underlying library expecting the session to be an instance of The "Sessions" section of the Upgrade Guide says:
This results in the I'm not sure what the best solution is though... Perhaps replace the public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
{
$response = $this->app->handle($request, $type, $catch);
if (self::MASTER_REQUEST === $type) {
$this->turbolinks->decorateResponse($request, $response);
$response->headers->set('Turbolinks-Location', $request->fullUrl()); // <-- Added
}
return $response;
} That seems to work for me anyway. |
Hi @davejamesmiller, You're right I need to investigate in the NB: Maybe this issue need to be moved to the https://github.com/helthe/Turbolinks repository... Have a good day, |
Hi, After some tests, it works as expected in some conditions... Turbolinks correctly handles redirection if the current request is an XHR (AJAX) one and hasn't a GET HTTP method. See: I need more times for the session stuff... Cheers, |
> Laravel's session handlers no longer implements Symfony's `SessionInterface`. > ... > All calls to the `->set()` method should be changed to `->put()`. See frenzyapp/turbolinks#17
> Laravel's session handlers no longer implements Symfony's `SessionInterface`. > ... > All calls to the `->set()` method should be changed to `->put()`. See frenzyapp/turbolinks#17
> Laravel's session handlers no longer implements Symfony's `SessionInterface`. > ... > All calls to the `->set()` method should be changed to `->put()`. See frenzyapp/turbolinks#17
Hi folks, The 3.2.0 release should resolve this issue. You can edit your {
"require": {
// ...
"frenzy/turbolinks": "~3.2.0"
}
} Have a good day, |
When I use redirect method but URL does not change from
"/link"
to"/test"
The text was updated successfully, but these errors were encountered: