Skip to content

Can't go to anchors by URL #126

@paudrow

Description

@paudrow

If you find a security vulnerability, do NOT open an issue. Email [email protected] instead.

Describe the bug

When I click an anchor link and then paste that URL in the browser, it doesn't take me to the anchor section.

To Reproduce

  1. Click an anchor link in a h1 or h2 heading.
  2. Copy the link in your browser URL bar
  3. Paste the link in your browser URL bar

Expected behavior

The browser goes to the specified heading.

Screenshots
If applicable, add screenshots to help explain your problem.

Which versions of Sanity are you using?

@sanity/cli (global)  3.88.3 (up to date)

What operating system are you using?

Mac OS latest, but it fails on your demo page, too.

Which versions of Node.js / npm are you running?

11.2.0
v22.9.0

Additional context

Add any other context about the problem here.

Security issue?

Any security issues should be submitted directly to [email protected]. In order to determine whether you are dealing with a security issue, ask yourself these two questions:

  • Can I access something that's not mine, or something I shouldn't have access to?
  • Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [[email protected]](mailto:[email protected].

Metadata

Metadata

Assignees

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