AP.history.back() doesn't work when used second time

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:

  1. 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.

  1. 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.

  1. On page three I use AP.history.back(). This sends me back to pageTwo.
  2. On page two I again us AP.history.back(), but this time nothing happens :frowning:

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.