diff --git a/aleksis/core/assets/components/LegacyBaseTemplate.vue b/aleksis/core/assets/components/LegacyBaseTemplate.vue index 553b583fbee21a09b04d17f23c2f2a836e0f3b47..ddd0f56e78c7b1a7fcdb1517f7d605615db098ff 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) !== "/"