I have a simple Xpage (page1.xsp) opened from view.xsp page. It contains the following elements
1) Back button written in SSJS
context.redirectToPreviousPage()
2) CSJS script that does ajax get every x minutes
dojo.xhr.get({
url:"page2.xsp?param1=value1",
handleAs:"text"
});
My probem is that after several ajax requests my Back button goes to page2.xsp (ajax get page) instead of view.xsp.
How can I make it go back to view.xsp page?