ajax - Rails: request.referrer == request.url -


perhaps misunderstand how request.referrer works, isn't suppose provide url of page user coming from? instance, if they're viewing article , click edit, request might this:

request.referrer = http://localhost:3000/article/1 request.url = http://localhost:3000/article/1/edit 

if that's case, i'm getting odd behaviour, because user's request.referrer set current url. might causing this? it's worth noting i'm using ajax powered site, , these requests remote.

request.referrer should url making request from, if ajax think should change url referrer change.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -