You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently noticed this issue with a markdown hugo page containing anchor links going to a different area within the same page.
e.g.
[SomeLink](#someheading)
...
## someheading
Let's say we have a page X with heading a.
When visiting X and clicking an anchor link #a the scroll position jumps to a.
When now using the browser back button, the expected native behavior is, that the scrolling position jumps back to the position it was before clicking the link. When clicking the browser forward button afterwards, the scrolling position should then jump back to the position it was before clicking the back button.
Click browser back button -> position jumps back to "Use a Module for a Theme"
Click browser forward button -> scroll position back to "Update Modules"
When using the relearn theme I noticed that 3. and 4. do not seem to work properly, i.e. the scrolling position does not change when navigating back and forth between different anchors on the same page.
The text was updated successfully, but these errors were encountered:
nibau
changed the title
nav: browser back and forth navigation between different anchors on the same page does not scroll to the correct position
nav: browser back and forth navigation between different anchors on the same page does not jump to the correct position
Mar 30, 2023
McShelby
changed the title
nav: browser back and forth navigation between different anchors on the same page does not jump to the correct position
nav: browser anchor back navigation does not jump to the correct position
Mar 30, 2023
McShelby
changed the title
nav: browser anchor back navigation does not jump to the correct position
nav: browser back navigation does not jump to the correct position
Mar 16, 2024
This could be related to #476
I've recently noticed this issue with a markdown hugo page containing anchor links going to a different area within the same page.
e.g.
Let's say we have a page X with heading
a
.When visiting X and clicking an anchor link
#a
the scroll position jumps toa
.When now using the browser back button, the expected native behavior is, that the scrolling position jumps back to the position it was before clicking the link. When clicking the browser forward button afterwards, the scrolling position should then jump back to the position it was before clicking the back button.
Example:
When using the relearn theme I noticed that 3. and 4. do not seem to work properly, i.e. the scrolling position does not change when navigating back and forth between different anchors on the same page.
Example:
(I have tested with Firefox and Edge (Chromium))
The text was updated successfully, but these errors were encountered: