turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 428 forks source link

Redirect and reload full page #657

Open aledalgrande opened 8 years ago

aledalgrande commented 8 years ago

I have a turbolink-enabled link that, on condition, should be redirected to a fully reloaded page (different layout). When I do:

redirect_to path, turbolinks: false

the request is still a XHR request though and it doesn't like the response which is a full HTML document (the layout gets corrupted). Bug?

ericenns commented 8 years ago

I am having the exact same issue. For me it is when my users sessions is destroyed and they are redirected to the sign in which has a different layout. Using devise btw if that matters.