From decc3c7463db70002adfdc4cd0e7b5152a1e2ab3 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Thu, 30 Sep 2021 13:44:04 +0200 Subject: [PATCH] otf: replace button by link in show modale --- .../public/vuejs/_components/OnTheFly.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue index 329672f4e..5f116e057 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue @@ -42,16 +42,16 @@ @@ -174,11 +174,12 @@ export default { this.modal.showModal = false; }, - goToLocation(id, type) { + buildLocation(id, type) { if (type == 'person') { - window.location = `../../person/${id}/general`; + // TODO i18n + return `/fr/person/${id}/general`; } else if (type == 'thirdparty') { - window.location = `../../thirdparty/thirdparty/${id}/show`; + return `/fr/thirdparty/thirdparty/${id}/show`; } } }