Skip to content

Where to place client script #296

@ComputerCarl

Description

@ComputerCarl

When I navigate my pages, the page is not loading to the top of the new page.

  1. Is there some reason the new page wouldn't navigate to the top as default?
  2. Where would I send JavaScript to the client? I tried putting a window.scrollTo(0, 50); in the Article's componentDidMount, but that doesn't work for obvious reasons.
    Must I use the Document setting of static.config.js, or is there a faster, cleaner way?

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