From b1c0ae699a8887c11257014804cbd5bd749c5842 Mon Sep 17 00:00:00 2001
From: Hangzhi Yu <yuha@katharineum.de>
Date: Fri, 6 Jan 2023 18:18:02 +0100
Subject: [PATCH] Only replace '/django/' in url path

---
 aleksis/core/assets/components/LegacyBaseTemplate.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/core/assets/components/LegacyBaseTemplate.vue b/aleksis/core/assets/components/LegacyBaseTemplate.vue
index 553b583fb..ddd0f56e7 100644
--- a/aleksis/core/assets/components/LegacyBaseTemplate.vue
+++ b/aleksis/core/assets/components/LegacyBaseTemplate.vue
@@ -46,7 +46,7 @@ export default {
       // Write new location of iframe back to Vue Router and title of iframe to SPA window
       const location = this.$refs.contentIFrame.contentWindow.location;
       const url = new URL(location);
-      const path = url.pathname.substring(7);
+      const path = url.pathname.replace(/^\/django/, "");
       const routePath =
         path.charAt(path.length - 1) === "/" &&
         this.$route.path.charAt(path.length - 1) !== "/"
-- 
GitLab