Open an in-project README link through the router by its built href, so its query and fragment stay out of the path
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- Review fix: `<Link to={href}>` put `?raw=1#L3` inside the router's pathname (search `{}`, hash `""`), so a link's location was wrong for active state, matching and hash scroll even though the rendered href looked right. `<Link href={href}>` is TanStack's documented way to navigate to a built href: the router parses it into path, query and fragment. - `Link<RegisteredRouter, string, string>` makes `to` optional in the props; no cast. - Test: a README link to the page the router is on is marked `aria-current="page"`, with its query and fragment. It failed by assertion with `to`, and it also shows the anchor is a router Link (a plain `<a>` carries no active state), which the earlier routed test could not tell apart.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+25 added−5 removed
- tests:+20 added−3 removed
- other:+5 added−2 removed