Request.referer with anchor

there is a way to get a linked referent from the referrer page.

situation - I have a search page that loads the results (users) below the search box using ajax. I change the hash / anchor on the fly when a search keyword is typed.

so it becomes http: // localhost / users / search # foo

the user gets a link as a result of ajax to edit the user. I want the user to return to that same search result after they have finished editing the user.

+2


source to share


1 answer


Anchors are not included in the referrer. You will need to use query parameters or define the return url (with anchor) in the session before updating the user.



+1


source







All Articles