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

Anchor links do not work correctly for headers produced by loops #2044

Open
archiewood opened this issue May 30, 2024 · 0 comments
Open

Anchor links do not work correctly for headers produced by loops #2044

archiewood opened this issue May 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@archiewood
Copy link
Member

Steps To Reproduce

create a page with headers generated by a loop

{#each assessment as assess}

### {assess.name}

Some text

{/each}

Expected Behavior

You can click on the TOC and it will navigate to the correct point in the page

Actual Behaviour

It navigates to the first instance of the loop, as they all have the same href

image

@archiewood archiewood added bug Something isn't working to-review Evidence team to review and removed to-review Evidence team to review labels May 30, 2024
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

1 participant