Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the brower's address doesn't change when rails redirect_to successfully invoke the new url?

I'm using rails 4. and I've tried

redirect_to queue_url or redirect_to '\queue'.

both successfully send a GET request to the correct url, handled by the correct action, and the web page has been refreshed with the correct content. However, the brower's url still remains unchanged. But I'm expecting the url to be changed to \queue. This is annoying because if the user then refresh the page, the page is refreshed to the original url.

Is anything wrong?

like image 442
Tao Avatar asked Dec 27 '13 09:12

Tao


1 Answers

Seems like this is a known limitation of redirect in Rails, see here and here.

like image 164
Dmitry Kuskov Avatar answered Oct 22 '22 08:10

Dmitry Kuskov