From 9ea0e05067da05c3fb34ba44a30072d438b75c7c Mon Sep 17 00:00:00 2001 From: Rudolfs Petrovs <49215407+rudolfspetrovs@users.noreply.github.com> Date: Sun, 16 May 2021 18:26:16 +0100 Subject: [PATCH] Fix README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96c2801..aff76c8 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ var newSettings = "model": "https://escher.github.io/1-0-0/6/models/Escherichia%20coli/iJO1366.json", "map": "https://escher.github.io/1-0-0/6/maps/Escherichia%20coli/iJO1366.Central%20metabolism.json" } -var newURI = encodeURI(`${window.location.origin}/?settings=${JSON.stringify(newSettings)}`); +var newURI = encodeURI(`${window.location.origin}${window.location.pathname}?settings=${JSON.stringify(newSettings)}`); window.location.href = newURI; ``` The resulting URL in the example would be: -https://lv-csbg.github.io/?settings=%7B%22model%22:%22https://escher.github.io/1-0-0/6/models/Escherichia%2520coli/iJO1366.json%22,%22map%22:%22https://escher.github.io/1-0-0/6/maps/Escherichia%2520coli/iJO1366.Central%2520metabolism.json%22%7D +https://lv-csbg.github.io/flux-analysis/?settings=%7B%22model%22:%22https://escher.github.io/1-0-0/6/models/Escherichia%2520coli/iJO1366.json%22,%22map%22:%22https://escher.github.io/1-0-0/6/maps/Escherichia%2520coli/iJO1366.Central%2520metabolism.json%22%7D