Skip to content

Sub-header anchor string reverts to parent header anchor string in URL #2589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
rekmarks opened this issue Aug 26, 2020 · 1 comment
Open
1 task done

Comments

@rekmarks
Copy link

rekmarks commented Aug 26, 2020

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

  1. Go to https://docs.metamask.io/guide/ethereum-provider.html (although all pages exhibit the same behavior)
  2. Click a ### sub-header in the table of contents (e.g. message under Events)
  3. Observe the hash in the URL first showing the ### anchor, then reverting to the parent ## anchor

What is expected?

Clicking once on a sub-header should navigate to that sub-header, and its corresponding anchor string should appear and persist in the URL.

What is actually happening?

Clicking once on the sub-header navigates to the sub-header, but the anchor string in the URL reverts to the parent header's anchor string after a few hundred milliseconds.

Click here for recording gif

Other relevant information

Environment Info:

  System:
    OS: macOS 10.15.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
  Browsers:
    Chrome: 84.0.4147.135
    Edge: Not Found
    Firefox: 79.0
    Safari: 13.1.2
  npmPackages:
    @vuepress/core:  1.5.4
    @vuepress/theme-default:  1.5.4
    vuepress: ^1.5.4 => 1.5.4
  npmGlobalPackages:
    vuepress: Not Found
@rekmarks
Copy link
Author

Possibly related anchor shenanigans: #1499, #2489, #2379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant