We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Redirect to Previous Page in Client Script

dalton1
Giga Expert

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?

9 REPLIES 9

dalton1
Giga Expert

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.


find the previous url in client side?


Yes!


document.referrer


Hello,

 

Did anyone find an answer to this question?

 

Mike W