fix: update relative link handling by sy-records · Pull Request #2579 · docsifyjs/docsify

Conversation

@vercel

Koooooo-7

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any change on this...? I thought it is a refactor. 🔨

sy-records

Comment on lines +37 to +39

href = router
.toURL(href, null, router.getCurrentPath())
.replace(/^#\//, '/');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix this here by calling toURL to handle relative paths according to routerMode.

This was referenced

Sep 2, 2025

2 participants

@sy-records @Koooooo-7