diff --git a/assets/js/graph.js b/assets/js/graph.js
index c5829e92..db1cfe2a 100644
--- a/assets/js/graph.js
+++ b/assets/js/graph.js
@@ -1,5 +1,4 @@
async function drawGraph(
- url,
baseUrl,
pathColors,
depth,
@@ -10,7 +9,7 @@ async function drawGraph(
const container = document.getElementById('graph-container')
const { index, links, content } = await fetchData
- const curPage = url.replace(baseUrl, '')
+ const curPage = window.location.href.replace(baseUrl, "").replace(/\/$/g, "")
const parseIdsFromLinks = (links) => [
...new Set(links.flatMap((link) => [link.source, link.target])),
diff --git a/data/config.yaml b/data/config.yaml
index afa531c3..2676ac2a 100644
--- a/data/config.yaml
+++ b/data/config.yaml
@@ -3,7 +3,7 @@ enableToc: true
openToc: false
enableLinkPreview: true
enableLatex: true
-enableSPA: false
+enableSPA: true
description:
Host your second brain and digital garden for free. Quartz features extremely fast full-text search,
Wikilink support, backlinks, local graph, tags, and link previews.
diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index b8b2f616..6bc77b64 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -18,7 +18,6 @@