Ruby on Rails Friday, December 21, 2012



On Friday, 21 December 2012 02:10:51 UTC-5, Maddy wrote:

Thanks!

Is there any another way??

My requirement is, once i clicks the browser back button my site redirect to home page.

Please advice!


As others have indicated, it's tricky-to-impossible and considered *seriously* bad practice to do this sort of fiddling with the browser's navigation.

A better question is, why does this need to happen? There's a good chance that the need for this sort of behavior reflects a design smell someplace else - for instance, trying to maintain session state in the URL or similar.

--Matt Jones 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/wSHWQTULrW4J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment