Skip to content

Commit

Permalink
add middleware to redirect /datasets to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyre committed Nov 4, 2024
1 parent bf12fc5 commit c0afa23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions argilla-frontend/pages/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
import { useNewDatasetViewModel } from "./useNewDatasetViewModel";
export default {
middleware({ route, redirect }) {
if (route.params.id === "datasets") {
redirect("/");
}
},
mounted() {
this.getNewDatasetByRepoIdFromUrl();
},
Expand Down

0 comments on commit c0afa23

Please sign in to comment.