Skip to content
Snippets Groups Projects
Commit b1c0ae69 authored by Hangzhi Yu's avatar Hangzhi Yu Committed by Julian
Browse files

Only replace '/django/' in url path

parent 3507e319
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
Pipeline #106683 canceled
......@@ -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) !== "/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment