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

Index anchor links in algolia #11699

Open
1 of 2 tasks
chargome opened this issue Oct 31, 2024 · 0 comments
Open
1 of 2 tasks

Index anchor links in algolia #11699

chargome opened this issue Oct 31, 2024 · 0 comments

Comments

@chargome
Copy link
Member

chargome commented Oct 31, 2024

Problem Statement

It seems we currently do not index anchor links in Algolia (e.g. /platforms/javascript/configuration/options/#ignore-errors).
This is generally not a big issue since the content will still move the user to the desired page where the content lives on.

This does become an issue (or leads to confusion) though when a user searches for content and is already on the correct page.

Solution Brainstorm

  • As a first step we could simply close the search result box when the user clicks on a result for a page that is the current one.

  • As a second step we could think of indexing anchor links and adding them to the search results, so we can make use of .scrollIntoView() and provide a better UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants