From bf4e17f23dd2566a402050ac99237f7d6b1abe5c Mon Sep 17 00:00:00 2001
From: Marc Hanisch <mhanisch@gfz-potsdam.de>
Date: Mon, 1 Nov 2021 08:37:15 +0100
Subject: [PATCH] uses .replace to redirect to /basic pages

---
 pages/configurations/_id.vue    | 2 +-
 pages/devices/_deviceId.vue     | 2 +-
 pages/platforms/_platformId.vue | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pages/configurations/_id.vue b/pages/configurations/_id.vue
index 90d458935..5c03adb30 100644
--- a/pages/configurations/_id.vue
+++ b/pages/configurations/_id.vue
@@ -64,7 +64,7 @@ export default class ConfigurationsIdPage extends Vue {
 
   created () {
     if (this.isBasePath()) {
-      this.$router.push('/configurations/' + this.configurationId + '/basic')
+      this.$router.replace('/configurations/' + this.configurationId + '/basic')
     }
   }
 
diff --git a/pages/devices/_deviceId.vue b/pages/devices/_deviceId.vue
index 3da133456..36db8d5f8 100644
--- a/pages/devices/_deviceId.vue
+++ b/pages/devices/_deviceId.vue
@@ -59,7 +59,7 @@ export default class DevicePage extends Vue {
 
   created () {
     if (this.isBasePath()) {
-      this.$router.push('/devices/' + this.deviceId + '/basic')
+      this.$router.replace('/devices/' + this.deviceId + '/basic')
     }
   }
 
diff --git a/pages/platforms/_platformId.vue b/pages/platforms/_platformId.vue
index e913a8089..d4c146596 100644
--- a/pages/platforms/_platformId.vue
+++ b/pages/platforms/_platformId.vue
@@ -57,7 +57,7 @@ export default class PlatformPage extends Vue {
 
   created () {
     if (this.isBasePath()) {
-      this.$router.push('/platforms/' + this.platformId + '/basic')
+      this.$router.replace('/platforms/' + this.platformId + '/basic')
     }
   }
 
-- 
GitLab