Skip to content

Fix CoffeeScript.org's use of pushState #4704

@jashkenas

Description

@jashkenas

Currently, we're using pushState when you scroll around on the documentation site to provide linkable URLs to the section you're reading.

We should change this to use replaceState. This will allow you to continue to click around the nav bar and use the back button — but will prevent scrolling from breaking your back button.

When I click in from blog post X to CoffeeScript.org and scroll a bit, and hit back, I want to be on blog post X: not a hundred pixels up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions