Skip to content

Anchor can't be reused twice #1899

Description

@scruel

Bug Report

Steps to reproduce

  1. Click the anchor (url will be URL1 now)
  2. Scroll to the anchor
  3. Click the anchor again

Or visit URL1, repeat step 2 and 3.

What is current behaviour

Second click on the anchor won't work.

What is the expected behaviour

Second click on the anchor should still jump to the right position

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: windows10

  • Browser version: Firefox 105

  • Docsify version: 4.12.2

  • Docsify plugins: None

Please create a reproducible sandbox

Edit

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

Activity

  1. Koooooo-7 commented on Oct 4, 2022

    @Koooooo-7
    Member

    Hi @scruel , could plz provide a gif or something reproduce it in sandbox? I opened the sandbox but not quite sure what the issue is.

  2. scruel commented on Oct 7, 2022

    @scruel
    Author

    Hi @scruel , could plz provide a gif or something reproduce it in sandbox? I opened the sandbox but not quite sure what the issue is.

    1. visit https://docsify.js.org/#/plugins?id=full-text-search
    2. scroll down to the bottom
    3. click "Full Text Search"

    Excepted jump to the "Full Text Search" section, but nothing happened.
    image

  3. Koooooo-7 commented on Oct 7, 2022

    @Koooooo-7
    Member

    Hi @scruel I see, cos it does not trigger the hashchange event to make this content scroll, i.e. click another selection and click it back, it should work as expected. Gonna have a fix on it.

  4. Koooooo-7 commented on Jul 25, 2025

    @Koooooo-7
    Member

    closed by #2575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions