Page MenuHomePhabricator

Allow a user to target "#anchor" by navigating to any prefix
ClosedPublic

Authored by epriestley on Sep 18 2019, 10:02 PM.
Tags
None
Referenced Files
F19503168: D20820.diff
Thu, Jan 8, 9:48 PM
F19150581: D20820.id49653.diff
Dec 10 2025, 9:25 PM
F19150576: D20820.id49639.diff
Dec 10 2025, 9:25 PM
F19142621: D20820.diff
Dec 10 2025, 1:50 PM
F19083066: D20820.id49653.diff
Dec 2 2025, 12:30 PM
F19052081: D20820.diff
Nov 28 2025, 2:51 AM
F18985215: D20820.id49639.diff
Nov 17 2025, 12:56 PM
F18784785: D20820.id49653.diff
Oct 13 2025, 3:11 PM
Subscribers
None

Details

Summary

Ref T13410. We currently generate some less-than-ideal anchors in remarkup, but it's hard to change the algorithm without breaking stuff.

To mitigate this, allow #xyz to match any target on the page which begins with xyz. This means we can make anchors longer with no damage, and savvy users are free to shorten anchors to produce more presentation-friendly links.

Test Plan

Browsed to #header-th, was scrolled to #header-three, etc.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable