diff --git a/src/components/settings/Notifications.vue b/src/components/settings/Notifications.vue
index 5459f6f9c..48dc2729b 100644
--- a/src/components/settings/Notifications.vue
+++ b/src/components/settings/Notifications.vue
@@ -11,7 +11,7 @@
diff --git a/src/components/settings/Proxies.vue b/src/components/settings/Proxies.vue
index 4608f3aa4..00088bf1b 100644
--- a/src/components/settings/Proxies.vue
+++ b/src/components/settings/Proxies.vue
@@ -13,7 +13,7 @@
{{ proxy.host }}:{{ proxy.port }} ({{ proxy.protocol }})
{{ $t("Default") }}
- {{ $t("Edit") }}
+ {{ $t("Edit") }}
diff --git a/src/pages/AddStatusPage.vue b/src/pages/AddStatusPage.vue
index 230894ff4..898c25107 100644
--- a/src/pages/AddStatusPage.vue
+++ b/src/pages/AddStatusPage.vue
@@ -59,7 +59,7 @@ export default {
this.processing = false;
if (res.ok) {
- location.href = "/status/" + this.slug + "?edit";
+ this.$router.push("/status/" + this.slug + "?edit");
} else {
if (res.msg.includes("UNIQUE constraint")) {
diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue
index f58ab2b0d..610ea1196 100644
--- a/src/pages/EditMonitor.vue
+++ b/src/pages/EditMonitor.vue
@@ -286,7 +286,7 @@
{{ $t("Default") }}
@@ -313,7 +313,7 @@
{{ $t("default") }}
diff --git a/src/pages/NotFound.vue b/src/pages/NotFound.vue
index 99d9bbe25..189290e35 100644
--- a/src/pages/NotFound.vue
+++ b/src/pages/NotFound.vue
@@ -31,7 +31,7 @@
{{ $t("What you can try:") }}
diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue
index 0898acab3..c92d90fa5 100644
--- a/src/pages/StatusPage.vue
+++ b/src/pages/StatusPage.vue
@@ -128,10 +128,10 @@
{{ $t("Edit Status Page") }}
-
+
{{ $t("Go to Dashboard") }}
-
+
@@ -179,12 +179,12 @@
{{ $t("Style") }}: {{ $t(incident.style) }}
@@ -554,7 +554,7 @@ export default {
this.$root.publicGroupList = res.data.publicGroupList;
}).catch( function (error) {
if (error.response.status === 404) {
- location.href = "/page-not-found";
+ this.$router.push("/page-not-found");
}
console.log(error);
});
@@ -657,7 +657,7 @@ export default {
}
setTimeout(() => {
- location.href = "/status/" + this.config.slug;
+ this.$router.push("/status/" + this.config.slug);
}, time);
} else {
@@ -676,7 +676,7 @@ export default {
this.$root.getSocket().emit("deleteStatusPage", this.slug, (res) => {
if (res.ok) {
this.enableEditMode = false;
- location.href = "/manage-status-page";
+ this.$router.push("/manage-status-page");
} else {
toast.error(res.msg);
}
@@ -713,7 +713,7 @@ export default {
/** Discard changes to status page */
discard() {
- location.href = "/status/" + this.slug;
+ this.$router.back();
},
/**