From c05c1c4d55238a5216cf62ffe98dbe1ab67a8a18 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Tue, 5 May 2026 16:37:55 -0700 Subject: [PATCH 1/2] fix clicking link twice --- frontend/src/index.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 4fc3c44cac..c1cb2bddca 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -375,20 +375,6 @@ export class App extends BtrixElement { ?open=${this.appState.userGuideOpen} contained @sl-hide=${() => AppStateService.updateUserGuideOpen(false)} - @sl-after-hide=${() => { - // FIXME There might be a way to handle this in Mkdocs, but updating - // only the hash doesn't seem to update the docs view - const iframe = this.userGuideDrawer.querySelector("iframe"); - - if (!iframe) return; - - const src = iframe.src; - const hashIdx = src.indexOf("#"); - - if (hashIdx > -1) { - iframe.src = src.slice(0, src.indexOf("#")); - } - }} > From 8b34ec5419d59051727d276ba8c82bf9c4589ee9 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Tue, 5 May 2026 16:40:26 -0700 Subject: [PATCH 2/2] close user guide when navigating away from workflow --- frontend/src/features/crawl-workflows/workflow-editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/features/crawl-workflows/workflow-editor.ts b/frontend/src/features/crawl-workflows/workflow-editor.ts index c177888ff1..25468e40f3 100644 --- a/frontend/src/features/crawl-workflows/workflow-editor.ts +++ b/frontend/src/features/crawl-workflows/workflow-editor.ts @@ -462,6 +462,7 @@ export class WorkflowEditor extends BtrixElement { disconnectedCallback(): void { this.onPanelIntersect.cancel(); + AppStateService.updateUserGuideOpen(false); super.disconnectedCallback(); }