From 73806e78bcf548191fc96b42124388dc2b310a3e Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 3 Nov 2025 19:06:01 -0700 Subject: [PATCH] refactor: fix the 'back' links to work consistently, so contact pages can be included in other flows --- src/views/ContactEditView.vue | 4 +--- src/views/DIDView.vue | 14 +++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/views/ContactEditView.vue b/src/views/ContactEditView.vue index 51687b5b..a3ec73ce 100644 --- a/src/views/ContactEditView.vue +++ b/src/views/ContactEditView.vue @@ -346,9 +346,7 @@ export default class ContactEditView extends Vue { // Notify success and redirect this.notify.success(NOTIFY_CONTACT_SAVED.message, TIMEOUTS.STANDARD); - (this.$router as Router).push({ - path: "/did/" + encodeURIComponent(this.contact?.did || ""), - }); + this.$router.back(); } } diff --git a/src/views/DIDView.vue b/src/views/DIDView.vue index f6acf31c..8d67961c 100644 --- a/src/views/DIDView.vue +++ b/src/views/DIDView.vue @@ -12,20 +12,20 @@ - - + - - + @@ -476,7 +476,7 @@ export default class DIDView extends Vue { * Navigation helper methods */ goBack() { - this.$router.go(-1); + this.$router.back(); } /**