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 c8f93ff commit 4d0363fCopy full SHA for 4d0363f
src/core/render/index.js
@@ -315,8 +315,11 @@ export function Render(Base) {
315
sidebarToggleEl.setAttribute('aria-expanded', String(!isMobile()));
316
317
const activeElmHref = this.router.toURL(this.route.path);
318
+ const decodedHref = decodeURIComponent(activeElmHref);
319
const activeEl = /** @type {HTMLElement | null} */ (
- dom.find(`.sidebar-nav a[href="${activeElmHref}"]`)
320
+ dom.find(
321
+ `.sidebar-nav a[href="${activeElmHref}"]${activeElmHref !== decodedHref ? `, .sidebar-nav a[href="${decodedHref}"]` : ''}`,
322
+ )
323
);
324
325
this.#addTextAsTitleAttribute('.sidebar-nav a');
0 commit comments