Skip to content
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

BUG - Table of content links not working in post page #52

Open
haitt00 opened this issue May 1, 2023 · 0 comments
Open

BUG - Table of content links not working in post page #52

haitt00 opened this issue May 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@haitt00
Copy link

haitt00 commented May 1, 2023

Describe the bug
Table of content links does not work (only a couple of first links) in post page.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Demo page to view the Deep Q Learning for Tic Tac Toe post
  2. Make sure you scroll out of the 'Background' section. From the table of content on the right sidebar click on the 'Background' section (the first section)
  3. The page is not navigated to the position of the 'Background' section

Expected behavior
The page should navigate to the position of the 'Background' section.

Desktop (please complete the following information):

  • OS: macOS 13.3.1
  • Browser: chrome
  • Version Version 112.0.5615.137 (Official Build) (x86_64)

Additional context
I believe the reason for this bug is because the table of content navigates to sections using html ids, and there are duplicated ids of html elements in page-content and in post-excerpt(which is extracted from page content).

@haitt00 haitt00 added the bug Something isn't working label May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants