Do the titles of Sanity's documentation pages also have anchor tags?

6 replies
Last updated: Nov 29, 2025
It would be nice if the titles in the docs were linkable, eg take these documents if i want to navigate one of my team mates to the
Creating if not already present
section, i need to send them the link and then post the title, But it would be much better if we were able to just hover the title and then have a
copy link
icon which will allow a direct link to that section of the page, eg:
<https://www.sanity.io/docs/js-client#creating-if-not-already-present>
AI Update

Good news! The Sanity documentation already has linkable headings with anchor links. Every heading on docs pages automatically gets an anchor that you can link to directly, just like in your example: https://www.sanity.io/docs/js-client#creating-if-not-already-present.

However, you're right that the hover-to-copy functionality would make this more discoverable. Currently, you need to manually:

  1. Hover over a heading to see the anchor link appear
  2. Click it to navigate (which updates the URL)
  3. Copy the URL from your browser's address bar

Or construct the link manually by adding #heading-slug to the page URL.

Many modern documentation sites (like Docusaurus, MDX-based sites, and others) show a link icon (đź”— or #) next to headings on hover with a "copy link" action, which is what you're describing. This is typically implemented using plugins like remark-autolink-headings or rehype-autolink-headings in MDX/React-based documentation.

What you can do:

Since this is a feature request for the Sanity documentation itself, I'd recommend:

  1. Submit feedback through the Sanity Slack community in the #documentation channel
  2. Or reach out via the feedback widget on the docs site itself

The Sanity team is generally responsive to UX improvements like this, especially when they improve developer experience. This kind of "copy link to heading" feature is a common pattern in developer documentation and would definitely make sharing specific sections easier for teams.

Current workaround: You can still deep-link to sections by clicking the heading (which adds the anchor to your URL) and then sharing that URL, but I agree a one-click copy button would be much more convenient!

Show original thread
6 replies

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?