diff --git a/src/components/repository/CreateRepository/CreateRepositoryForm.vue b/src/components/repository/CreateRepository/CreateRepositoryForm.vue index 39e068c29..c157e8425 100644 --- a/src/components/repository/CreateRepository/CreateRepositoryForm.vue +++ b/src/components/repository/CreateRepository/CreateRepositoryForm.vue @@ -213,12 +213,7 @@ export default { description: this.data.description, }); - this.$router.push({ - name: 'intelligence-home', - params: { - intelligenceUuid: data.uuid, - }, - }); + this.$router.push(`/intelligences/${data.uuid}`); } else { const response = await repositoryV2.create({ organization: this.getOrgSelected, diff --git a/src/components/repository/home/HomeRepositoryCard.vue b/src/components/repository/home/HomeRepositoryCard.vue index 77c6ca15d..24bbb24bb 100644 --- a/src/components/repository/home/HomeRepositoryCard.vue +++ b/src/components/repository/home/HomeRepositoryCard.vue @@ -663,12 +663,7 @@ export default { (this.type === 'repository' && this.repositoryDetail?.repository_type === 'content') ) { - this.$router.push({ - name: 'intelligence-home', - params: { - intelligenceUuid: this.repositoryDetail.uuid, - }, - }); + this.$router.push(`/intelligences/${this.repositoryDetail.uuid}`); } else if (this.type === 'repository') { let name; @@ -685,13 +680,9 @@ export default { }, }); } else if (this.type === 'base') { - this.$router.push({ - name: 'intelligence-content-base-edit', - params: { - intelligenceUuid: this.$route.params.intelligenceUuid, - contentBaseUuid: this.repositoryDetail.uuid, - }, - }); + this.$router.push( + `/intelligences/${this.$route.params.intelligenceUuid}/bases/${this.repositoryDetail.uuid}/edit`, + ); } }, async copyIntelligence() { diff --git a/src/views/repository/content/Bases.vue b/src/views/repository/content/Bases.vue index 141bb4f02..021f7e9d4 100644 --- a/src/views/repository/content/Bases.vue +++ b/src/views/repository/content/Bases.vue @@ -193,12 +193,9 @@ @close="isAddContentBaseOpen = false" @success=" ($event) => - $router.push({ - name: 'intelligence-content-base-edit', - params: { - contentBaseUuid: $event.uuid, - }, - }) + $router.push( + `/intelligences/${$route.params.intelligenceUuid}/bases/${$event.uuid}/edit`, + ) " > diff --git a/src/views/repository/content/BasesForm.vue b/src/views/repository/content/BasesForm.vue index b4b806df2..39fe19053 100644 --- a/src/views/repository/content/BasesForm.vue +++ b/src/views/repository/content/BasesForm.vue @@ -4,14 +4,7 @@ :title="contentBase.title" :dontShowBack="isRouterView" :brainIsDeactivated="!routerTunings.brainOn" - @back=" - $router.push({ - name: 'intelligence-home', - params: { - intelligenceUuid: intelligenceUuid, - }, - }) - " + @back="$router.push(`/intelligences/${intelligenceUuid}`)" >