docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.57k stars 5.67k forks source link

Jumping to a specific place of a different page doesn't work #1698

Closed rahjuu closed 7 months ago

rahjuu commented 2 years ago

Bug Report

Steps to reproduce

  1. Add an anchor (id="test") in page A.
  2. Create a link in page B: [Here is the Link](path of page A#test)
  3. Click the link in page B

What is current behaviour

Jump to the top of page A

What is the expected behaviour

Should jump to the place where the anchor was added

Other relevant information

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

paulhibbitts commented 7 months ago

Tested with the following with Docsify release v4.13.1 (see below) and now works as expected so closing issue.

Page A. Here is the Link Page B. ....

This is the paragraph I want to link to.

...