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 4f0f6f3 commit eb9d0b3Copy full SHA for eb9d0b3
src/core/event/index.js
@@ -478,7 +478,7 @@ export function Events(Base) {
478
const newActive = dom
479
.find(
480
sidebar,
481
- `a[href="${CSS.escape(href)}"], a[href="${CSS.escape(decodeURIComponent(href))}"]`,
+ `a[href="${href}"], a[href="${decodeURIComponent(href)}"]`,
482
)
483
?.closest('li');
484
src/core/router/history/base.js
@@ -82,6 +82,10 @@ export class History {
82
const local = currentRoute && path[0] === '#';
83
const route = this.parse(replaceSlug(path));
84
85
+ if (route.query.s) {
86
+ delete route.query.s;
87
+ }
88
+
89
route.query = { ...route.query, ...params };
90
path = route.path + stringifyQuery(route.query);
91
path = path.replace(/\.md(\?)|\.md$/, '$1');
0 commit comments