8e202610a4
## Problem Relative hash/query handling in `next/link` (e.g. `<Link href="#hello">`) is broken in App Router, especially if you're on a nested route. This wasn't a problem in `/pages` because the href always get fully resolved in `<NextLink>`; i.e. if you have `<Link href="#hash" />` on `/hello`, it'll resolve the href to `/hello#hash` and use that everywhere. However, in App Router, `<Link>` no longer uses the current location to resolve the href: |
||
---|---|---|
.. | ||
external-push/[storageKey] | ||
hash | ||
hash-link-back-to-same-page | ||
nested-navigation | ||
nested-relative-query-and-hash | ||
not-found | ||
redirect | ||
redirect-dest | ||
layout.js | ||
page.js |