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