From 4fe98f00a1f2707a59adeb69b68937bccde41105 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 29 Feb 2024 13:59:36 +0100 Subject: [PATCH] Bug 35919: Fix edit route to match existing ones --- .../prog/js/vue/components/Admin/RecordSources/List.vue | 2 +- .../intranet-tmpl/prog/js/vue/routes/admin/record_sources.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue index ad9271ad1be..80f6268f225 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue @@ -94,7 +94,7 @@ export default { }, doEdit(data) { this.$router.push({ - path: `record_sources/${data.record_source_id}`, + path: `record_sources/edit/${data.record_source_id}`, props: { data, }, diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/admin/record_sources.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/admin/record_sources.js index 49833980c69..ceac79d6c11 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/admin/record_sources.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/admin/record_sources.js @@ -30,7 +30,7 @@ export default { }, { title: $__("Edit record source"), - path: ":id", + path: "edit/:id", name: "Edit", component: markRaw(Edit), }, -- 2.34.1