From 9f604975e65977380a4ab7e80e5d44db466f8d84 Mon Sep 17 00:00:00 2001
From: eensander <50321538+eensander@users.noreply.github.com>
Date: Wed, 29 Nov 2023 12:15:43 +0100
Subject: [PATCH] fix: change base url to href to support subdirectories
---
src/components/graph/GraphModeler.vue | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/components/graph/GraphModeler.vue b/src/components/graph/GraphModeler.vue
index 9780e86..6a6108e 100644
--- a/src/components/graph/GraphModeler.vue
+++ b/src/components/graph/GraphModeler.vue
@@ -86,7 +86,7 @@
Sharable URL to this graph:
@@ -151,7 +151,6 @@
});
watch(() => docassemble_out_options, (val => {
- // console.log("options updated")
docassemble_cont_update();
}), { deep: true })
@@ -190,7 +189,7 @@
const antv = (new Transformer()).in_json(import_json as JSONGraphData).out_antv();
- graph.value.fromJSON(antv);
+ graph.value!.fromJSON(antv);
docassemble_cont_update();
toast.success("Successfully imported");
@@ -266,7 +265,7 @@
if (formatted_validation_errors.value.length == 0) {
const transformer = (new Transformer()).in_antv(graph.value);
const encoded_interview = base64.encode(JSON.stringify(transformer.out_json()))
- graph_sharable_url.value = `${window.location.protocol}//${window.location.host}/#${encoded_interview}`
+ graph_sharable_url.value = `${window.location.href}#${encoded_interview}`
} else {
graph_sharable_url.value = '-';
}