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
F19142621: D20820.diff
Wed, Dec 10, 1:50 PM
F19083066: D20820.id49653.diff
Tue, Dec 2, 12:30 PM
F19052081: D20820.diff
Fri, Nov 28, 2:51 AM
F18985215: D20820.id49639.diff
Mon, Nov 17, 12:56 PM
F18784785: D20820.id49653.diff
Oct 13 2025, 3:11 PM
F18754594: D20820.diff
Oct 4 2025, 11:48 PM
F18734046: D20820.id.diff
Sep 30 2025, 10:47 PM
F18694895: D20820.id49639.diff
Sep 27 2025, 4:41 AM
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