I’m loading pages to Jira project page using AP.navigator.go(). More information how I do it is here.
With this I have situation as follows:
- From the base page, I open second page using:
AP.navigator.go('site', {absoluteUrl: '[myInstance].atlassian.net/projects/TEST?[allOtherRequired]&ac.subpage=pageTwo'});
This reloads Jira page with my pageTwo in the project page.
- From pageTwo I again switch to third page with code:
AP.navigator.go('site', {absoluteUrl: '[myInstance].atlassian.net/projects/TEST?[allOtherRequired]&ac.subpage=pageThree'});
This reloads Jira page with my page three in the project page.
- On page three I use AP.history.back(). This sends me back to pageTwo.
- On page two I again us AP.history.back(), but this time nothing happens
Why the second history.back() doesn’t work?
I don’t use any other AP.history method in my project.
Using back button in webbrowser works as expected.
If step 2 and 3 are skipped, then the AP.history.back() in step 4 works as expected.