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

Adapt trailing slash status of iframe and SPA url when checking for new iFrame location

parent 3288ae14
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
Pipeline #105508 failed
......@@ -47,7 +47,12 @@ export default {
const location = this.$refs.contentIFrame.contentWindow.location;
const url = new URL(location);
const path = url.pathname.substring(7);
if (path !== this.$route.path) {
const routePath =
path.charAt(path.length - 1) === "/" &&
this.$route.path.charAt(path.length - 1) !== "/"
? this.$route.path + "/"
: this.$route.path;
if (path !== routePath) {
this.$router.push(path);
}
......
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