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 34b0ecd commit e5f89c4Copy full SHA for e5f89c4
packages/devui-vue/docs/.vitepress/devui-theme/components/AlgoliaSearchBox.vue
@@ -42,8 +42,10 @@ function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
42
navigator: {
43
navigate({ itemUrl }) {
44
const _itemUrl = itemUrl.replaceAll('//', '/');
45
- const { pathname: hitPathname } = new URL(window.location.origin + _itemUrl);
46
-
+ const { pathname: hitPathname } = new URL(
+ window.location.origin + _itemUrl,
47
+ );
48
+
49
// router doesn't handle same-page navigation so we use the native
50
// browser location API for anchor navigation
51
if (route.path === hitPathname) {
0 commit comments