From edfcded58a487f4b7e27d3eeec7fa3c48055244f Mon Sep 17 00:00:00 2001 From: mykter Date: Thu, 28 Dec 2023 19:54:46 +0000 Subject: [PATCH] De-duplicate route names Signed-off-by: mykter --- src/router/index.js | 2 +- src/views/portfolio/vulnerabilities/AffectedProjects.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 8f8c76c15..dfae068f9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -132,7 +132,7 @@ function configRoutes() { }, { path: 'projects/:uuid/findings/:vulnerability', - name: 'Project Finding Lookup', + name: 'Project Vulnerability Lookup', props: (route) => ( { uuid: route.params.uuid, vulnerability: route.params.vulnerability diff --git a/src/views/portfolio/vulnerabilities/AffectedProjects.vue b/src/views/portfolio/vulnerabilities/AffectedProjects.vue index 9e36900ce..f3f3e9a9e 100644 --- a/src/views/portfolio/vulnerabilities/AffectedProjects.vue +++ b/src/views/portfolio/vulnerabilities/AffectedProjects.vue @@ -27,7 +27,7 @@ field: "name", sortable: true, formatter: (value, row) => { - const url = this.$router.resolve({name: 'Project Finding Lookup', + const url = this.$router.resolve({name: 'Project Vulnerability Lookup', params: {'uuid': row.uuid, vulnerability:this.vulnerability}}).href; let html = `${xssFilters.inHTMLData(value)}`;