Admin navigation looses scroll position on click

Kirby

Well-known member
Affected version
2.3.0 Beta 4
When clicking an entry in the admin navigation menu a full new page is loaded and the scoll position is lost.

This is kinda annoying especially on smaller creens with a few extra sections.

Before clicking Payment provider log
1713460322658.webp


After clicking Payment provider log
1713460365176.webp
 
Last edited:
This behavior occurs in XF 2.2 as well (though it is subtly different as the sidebar shares a scrolling context with the overall document). We could scroll the active item into view via JS when the page is loaded, but the end result is a bit jarring in its own way. Not sure if we'll action this.
 
Yes, basically the same issue was reported for 2.2 but it is marked as fixed in 2.3 that's why I made a new report for 2.3:

Scrolling the active item into view IMHO would be a bit better than the current situation, but still not be ideal.

IMHO the real fix could be to not make complete page loads at all but just replace p-main when clicking a link in the navigation.
 
Oh my bad, I thought that bug was more about Sticky-Kit behaving oddly. The video just shows the navigation jumping around unexpectedly when expanding a section or scrolling the document, without a page load.
 
Back
Top Bottom