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)
Wed, Jul 2, 12:15 PM
Unknown Object (File)
Jun 1 2025, 11:35 AM
Unknown Object (File)
May 30 2025, 10:26 AM
Unknown Object (File)
May 29 2025, 5:41 AM
Unknown Object (File)
Apr 30 2025, 11:59 AM
Unknown Object (File)
Apr 27 2025, 10:38 AM
Unknown Object (File)
Apr 26 2025, 5:18 AM
Unknown Object (File)
Apr 4 2025, 6:46 PM
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