When Scroll Versions is enabled, tabs anchors are changed to include the path

Description

Steps to reproduce:

  1. Create a page with a viewport tabs container macro

  2. Add a few tab macros to the container

  3. Enable viewport and versions for that space

  4. Click on a tab in the viewport

Expected result:
Change the tab

Actual result:
URL gets changed to the anchor and tab is not changed

Workaround:
Before the closing body tag, add the following code:

1 2 3 <script> jQuery('.tabs-menu a').map(function(){this.href = this.href.replace(/(.*)(#)/, '$2')}) </script>

This rewrites the anchors to not include the entire path.

Environment

None

Status

Assignee

Maximilian Hilbert (K15t)

Reporter

MartinM

Labels

Participants

None

Deployment

None

Components

Sprint

None

Fix versions

Priority

Major