We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0460570 commit 99c4970Copy full SHA for 99c4970
src/plugins/docsearch/index.ts
@@ -9,8 +9,8 @@ export default {
9
// can be used in local development and previews.
10
transformItems(items) {
11
return items.map((item) => {
12
- const path = new URL(item.url).pathname;
13
- const url = new URL(path, window.origin);
+ const { pathname, hash } = new URL(item.url);
+ const url = new URL(pathname + hash, window.location.origin);
14
15
return {
16
...item,
0 commit comments