From 704de045783ae59d2f2a873e0dec16c849e0a2e9 Mon Sep 17 00:00:00 2001 From: David Huggins-Daines Date: Mon, 29 Jul 2024 22:57:26 -0400 Subject: [PATCH] fix: omg fix it again argh --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2d4973e..b79ff0e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -101,6 +101,9 @@ class App { && (window.location.pathname + "/") != this.base_url) { // HACK: this is only when we refer to a full bylaw if (window.location.hash) { + console.log("WTF", window.location.pathname, ALEXI_URL + + window.location.pathname.replace("/serafim", "") + + window.location.hash); window.location.assign(ALEXI_URL + window.location.pathname.replace("/serafim", "") + window.location.hash); @@ -135,7 +138,6 @@ class App { /* Show document content */ async show_document(url: string) { const target = this.media_query.matches ? this.document_view : this.search_results; - // Le beau rêve de Donalda réalisé url = ALEXI_URL + url.replace("/serafim", "/"); target.style.display = "block"; target.innerHTML = "";