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