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
F13226526: D20820.diff
Sun, May 19, 9:18 PM
F13220693: D20820.diff
Sun, May 19, 1:52 AM
F13209804: D20820.id49653.diff
Fri, May 17, 2:15 AM
F13203163: D20820.diff
Tue, May 14, 11:32 PM
F13190300: D20820.id.diff
Sat, May 11, 9:27 AM
F13186505: D20820.diff
Sat, May 11, 3:40 AM
F13183049: D20820.diff
Fri, May 10, 6:33 AM
Unknown Object (File)
Sat, May 4, 8:36 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