There is 1 comment.
 
 
Book Versions / cid:jira-generated-image-avatar-f804253c-5d35-4411-8dc6-66c10e6754a7 BVERSION-32 Open

Redirect loop on version in certain scenarios

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-22f2a7b2-7039-4061-91f9-fa7819ca8f67 Paul Pantiru on 11/Dec/24 07:41
 

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.