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
Post a Comment