Skip to content

Commit c0f3941

Browse files
authored
Merge pull request #267 from rvsia/router-uses-hash
Use hash when searching
2 parents d40cf66 + 05e5756 commit c0f3941

File tree

1 file changed

+1
-1
lines changed
  • packages/react-renderer-demo/src/app/src/components

1 file changed

+1
-1
lines changed

packages/react-renderer-demo/src/app/src/components/docsearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const DocSearch = () => {
5454
handleSelected: (input, event, suggestion) => {
5555
event.button = 0;
5656
const resultUrl = new URL(suggestion.url);
57-
push(resultUrl.pathname);
57+
push(`${resultUrl.pathname}${resultUrl.hash ? resultUrl.hash : ''}`);
5858
input.close();
5959
},
6060
// debug: true, // Set debug to true if you want to inspect the dropdown.

0 commit comments

Comments
 (0)