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
Unknown Object (File)
Oct 23 2024, 11:27 PM
Unknown Object (File)
Oct 20 2024, 11:54 AM
Unknown Object (File)
Oct 14 2024, 1:02 AM
Unknown Object (File)
Oct 9 2024, 12:42 PM
Unknown Object (File)
Sep 6 2024, 6:47 AM
Unknown Object (File)
Sep 6 2024, 6:47 AM
Unknown Object (File)
Sep 6 2024, 6:47 AM
Unknown Object (File)
Sep 2 2024, 9:12 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