Analyzing the code this is probably what's happening here:
First switch (v3 -> v1):
Sets inheritedRedirFlag to true
Redirects to v3's content
Flag indicates this is inherited, so it displays "Content inherited from v3"
Flag is then set to false
Second switch (v1 -> v2):
inheritedRedirFlag is now false
Code tries to set selectedVersion based on current page (which is showing v3's content)
This might cause confusion between the requested version (v2) and the displayed content's version (v3)
Each redirect might be alternating between trying to show v2's inheritance and trying to resolve the version mismatch
The fix might involve maintaining the requested version information separately from the displayed content's version, or ensuring the inheritedRedirFlag persists appropriately across version switches.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.