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
F15544476: D20820.diff
Sat, Apr 26, 5:18 AM
F15469978: D20820.id49653.diff
Fri, Apr 4, 6:46 PM
F15451464: D20820.id49639.diff
Fri, Mar 28, 10:15 PM
F15440588: D20820.id49653.diff
Mar 26 2025, 1:40 PM
F15431354: D20820.id.diff
Mar 24 2025, 11:52 AM
F15423441: D20820.id49639.diff
Mar 22 2025, 3:26 PM
F15419450: D20820.diff
Mar 21 2025, 6:10 AM
Unknown Object (File)
Feb 9 2025, 8:10 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