Page-relative href="#<id>"
links break when using hash-based router
#13320
Labels
bug
Something isn't working
href="#<id>"
links break when using hash-based router
#13320
Describe the bug
When using
router.type === 'hash'
, typical page-relative section links viahref="#<id>"
don't work. Instead, the full pathhref="#/path/to/page#<id>
is required. This makes working with automated page generation tools difficult, since these kinds of links all need to be modified and prepended with the path part of$page.url.hash
.Reproduction
Compare the two "jump to..." links in https://github.com/stephenlrandall/kit-inline-test.
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: