From 337be6e00b085b19232331d22ea5b531576d643f Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Mon, 17 Jun 2024 11:47:14 +0200 Subject: [PATCH 1/2] fix link forwarding after using send with url parameters --- frontend/src/pages/Send.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Send.vue b/frontend/src/pages/Send.vue index 334d1062d..550c30bf3 100644 --- a/frontend/src/pages/Send.vue +++ b/frontend/src/pages/Send.vue @@ -172,7 +172,7 @@ export default { throw new Error(`undefined transactionData.selected : ${this.transactionData.selected}`) } this.loading = false - this.$router.push('send') + this.$router.push({ path: '/send' }) }, onBack() { this.currentTransactionStep = TRANSACTION_STEPS.transactionForm From 5008a60225410f3ab04eb5a53d964b7a4f4f6d4d Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Mon, 17 Jun 2024 11:53:58 +0200 Subject: [PATCH 2/2] fix test --- frontend/src/pages/Send.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Send.spec.js b/frontend/src/pages/Send.spec.js index 43bda6f3d..8a4c4cc79 100644 --- a/frontend/src/pages/Send.spec.js +++ b/frontend/src/pages/Send.spec.js @@ -229,7 +229,7 @@ describe('Send', () => { }) it('resets the gradido ID query in route', () => { - expect(routerPushMock).toBeCalledWith('send') + expect(routerPushMock).toBeCalledWith({ path: '/send' }) }) }) })