Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Pervasive AngularJS drops scroll position on browser back #7881

Open
@c-vetter

Description

@c-vetter

When using AngularJS for everything on a page that could easily be done in a static way (see angularjs.org), using the back button becomes irritating because the scroll position is alway reset.

To reproduce:

At that point, you should see the text for $watch but you will see the page title instead. In Firefox and Internet Explorer, this even happens for in-page links (click $digest())!

TIcket #727 says that the reset is a feature. For cases like this, however, it's highly detrimental because it loses default browser behavior in a bad way. I think this also falls under "don't break the back button".

Apart from actually having AngularJS remember the scroll position, I think it would be good if AngularJS weren't applied as a matter of course on angularjs.org, but only as needed – and since the documentation pages don't really need to be built by on-page javascript, a good old-fashioned server-side render might be in order.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close