Skip to content

Commit

Permalink
fix: omg fix it again argh
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Jul 30, 2024
1 parent 340ee08 commit 704de04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 = "";
Expand Down

0 comments on commit 704de04

Please sign in to comment.