Skip to content

Instant loading: internal anchor links don't work in Safari #6334

@thesuperzapper

Description

@thesuperzapper

Context

No response

Bug description

In MkDocs Material 9.4.8, it seems that internal heading anchor links don't work properly on Safari when using navigation.instant.

Note, this reliably happens, but sometimes you might need to clear your cache first.

Related links

Reproduction

9.4.8-safari-anchor-links.zip

Steps to reproduce

  1. Use my reproduction.
  2. Open the website in safari.
  3. Click the link on the homepage.
  4. Notice that you are at the top of the page, not scrolled to "Section 2"

(Also, I am not sure if it's related, but the table of contents sidebar will be partially cut off until you scroll the page)

Screenshot 2023-11-14 at 11 54 13

Browser

Safari

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions