Skip to content

Page doesn't return to correct scroll position. #374

@hellonearthis

Description

@hellonearthis

When A link on a page is clicked, say from clicking on box() on #/reference/ the browser back button doesn't alway return to the position on the reference page was clicked on.

I think this stackoverflow explains the problem and a solution by using $(window).scrollTop(); to save the screens scroll position on unload in a cookie and then testing if there is a cookie and if there is setting the $(window).scrollTop(cookie); onload.

I don't know if this would work as I've not tested it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions