RailsCasts Pro episodes are now free!

Learn more or hide this

Ronald Chan's Profile

GitHub User: ronalchn

Comments by Ronald Chan

Avatar

ionas,

I came across this problem in Chrome (doesn't happen in Firefox). Apparently, its because the page and ajax request urls are the same (since Ryan showed pagination with only the requested format differentiating between returning the html and the javascript responses).

See:
http://stackoverflow.com/questions/6309477/moving-back-to-a-pushstate-entry-that-used-ajax

I think a more elegant solution than given in the stackoverflow answer, is to remove any page extension, and append the .js extension to change the url.