Redirect to Previous Page in Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2015 10:33 PM
Hi,
I would like to ask how to redirect the user to a previously visited page after click of Submit. Code will be put in the client script. I have tried below option but to no avail:
- action.setReturnURL(current);
Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2015 02:06 AM
Hi kalai,
My question was how to find the object/url that will be pass to the redirection such as the one you suggested. (window.location.href). Basically, I need to determine the URL of the previous page.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2015 02:07 AM
find the previous url in client side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2015 02:09 AM
Yes!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2015 02:10 AM
document.referrer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 12:31 PM
Hello,
Did anyone find an answer to this question?
Mike W