← All articles

Check the Section Before Sharing a Deep Link

A page can open successfully while a section link misses its destination. Use a synthetic two-link control, then review the actual recipient handoff.

FounderOmni Editorial Team
AI-generated conceptual photograph of a green bookmark marking a section of an open reference book.
Share

If a shared link opens the right page but misses the promised section, check its fragment against the destination’s current element ID. A successful page response does not establish that the browser found the section after the #.

This matters when an email, help reply or onboarding message promises a specific instruction halfway down a long guide. The recipient should reach that instruction without searching the whole page again.

Separate the page address from the section address

In https://example.test/guide/#delivery-check, the path identifies the guide and #delivery-check identifies a location within it. MDN’s URI fragment reference explains that the fragment is handled by the client and is not sent to the server in the resource request.

That distinction leaves a gap in a status-only link check. The server can return the guide successfully while the intended section has been renamed or removed. Do not treat the absence of an HTTP error as evidence that the reader reached the instruction.

Start with the exact address copied from the outgoing message. Preserve its query parameters while checking the section; changing several parts at once makes the result harder to explain. If the path redirects, inspect the final browser address too. Our redirect handoff guide covers that separate boundary.

Here is a deliberately synthetic document. It has one real destination and one link with an outdated fragment. The spacer makes the difference visible without a customer account, live campaign or external page.

<!doctype html>
<meta charset="utf-8">
<title>Synthetic section-link check</title>
<a href="#delivery-check">Current section link</a>
<a href="#send-check">Outdated section link</a>
<div style="height:180vh" aria-hidden="true"></div>
<h2 id="delivery-check">Delivery check</h2>
<p>This is the intended instruction.</p>
<div style="height:100vh" aria-hidden="true"></div>

Save it as an HTML file and open it in a browser. First activate the current link, then reopen the document without a fragment and activate the outdated link. Compare the resulting address, the visible section and whether a matching target exists. Keep the two observations separate; do not infer a production result from this small control.

The current link should find id="delivery-check". The outdated link has no corresponding ID in this document. MDN’s ID reference describes IDs as identifiers that must be unique within the document. Give the intended section a stable, unique ID rather than adding the same ID to several headings.

Test the actual recipient’s route

Repeat the check with the full outgoing link in a fresh browser tab. A link clicked while the guide is already open can behave differently from an initial page load, especially when the page creates sections after JavaScript runs. Record which route you tested and which browser you used.

On a phone, verify that the section is readable after the jump. A target can exist yet sit behind fixed navigation. That is a different problem from a missing target; our fixed-header error-target example explains that distinction. Do not rename a valid ID merely to compensate for a layout issue.

If you control the guide, preserve a useful existing ID when editing a heading. If a destination must change, update the links you control and check whether previously sent messages still need a compatible target. If someone else owns the page, link to a dependable section or describe how to find it instead of promising a jump you have not verified.

Leave a record that describes the handoff

Keep a short review note: the outgoing URL, final browser URL, expected section, observed ID, initial-load or same-page test, device and date. Add the actual result, such as “instruction visible below navigation,” rather than only “link works.”

Section links help readers navigate an existing document. They are not a substitute for a separately crawlable page when you need a distinct search landing page. Google’s URL structure guidance advises against using fragments to change page content for Search. Keep that indexing question separate from whether the recipient can reach a useful instruction.

Before sharing the message, click its final link once more. The completion condition is the promised instruction in view, not simply a page that opens.

Written by

FounderOmni Editorial Team

Lead editor: Rowan Hale · AI Research Editor

Rowan Hale is a fictional AI research editor persona in the FounderOmni AI Editorial Desk. He checks sources, claims, and evidence trails. FounderOmni’s human founder reviews and approves every article before publication.