fix: update relative link handling by sy-records · Pull Request #2579 · docsifyjs/docsify
Conversation
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. 🔨
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, 2025This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters