Steps to reproduce:
- Create a new site named as "Site Name".
- Add a public page named as "Staging Test Page".
- Enable local staging on "Site Name" with variation on public pages.
- Navigate to staging page "Staging Test Page".
- Add a new public page named as "Test Page Name".
- Add new page variation named as "Test Page Variation Name".
- Change page variation back to Main Variation.
- Go to History and change page variation to "Test Page Variation Name".
- Open browser console, search for //a[contains(@class,'layout-revision')].
Expected Result
Only current layout revision link exist in HTML elements.
Actual Result
The link for "Main Variation" also existed in HTML elements even though it is not visible in the UI.