dotnet / dotnet/docfx

Clicking search results should bring the user directly to the relevant fragment

Open
#228 2 comments 3 reactions 0 assignees View on GitHub
search
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

Current behavior is - when clicking on search result (site search, not the toc filter search) we're getting the top of the page, even if it's a very long page and the result is at the end of the page. In this case we have to either use ctrl+f to search inside the page, or scroll down and look for the highlighted text.

A better alternative would be that search results granularity will be in the html fragment level, so if i'm searching for the word "foo" and it exists inside a markdown header called "baz" in a page called "bar" i'll be directed straight to http://www.example.com/bar.html#baz

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.