From c0afa23c415c020a18de60af1e054ae45ea94e8c Mon Sep 17 00:00:00 2001 From: Leire Aguirre Date: Mon, 4 Nov 2024 12:39:11 +0100 Subject: [PATCH] add middleware to redirect /datasets to home page --- argilla-frontend/pages/_id.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/argilla-frontend/pages/_id.vue b/argilla-frontend/pages/_id.vue index e426416fb4..f73a79a95d 100644 --- a/argilla-frontend/pages/_id.vue +++ b/argilla-frontend/pages/_id.vue @@ -24,6 +24,11 @@ import { useNewDatasetViewModel } from "./useNewDatasetViewModel"; export default { + middleware({ route, redirect }) { + if (route.params.id === "datasets") { + redirect("/"); + } + }, mounted() { this.getNewDatasetByRepoIdFromUrl(); },