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
F13073389: D20820.diff
Mon, Apr 22, 10:39 PM
Unknown Object (File)
Sat, Apr 20, 4:56 PM
Unknown Object (File)
Sat, Apr 20, 1:53 PM
Unknown Object (File)
Thu, Apr 11, 7:18 AM
Unknown Object (File)
Wed, Apr 3, 7:58 AM
Unknown Object (File)
Feb 22 2024, 9:23 PM
Unknown Object (File)
Jan 16 2024, 10:55 PM
Unknown Object (File)
Dec 25 2023, 9:39 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