Skip to content

Commit

Permalink
De-duplicate route names
Browse files Browse the repository at this point in the history
Signed-off-by: mykter <[email protected]>
  • Loading branch information
mykter committed Dec 28, 2023
1 parent d42e6a8 commit edfcded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/views/portfolio/vulnerabilities/AffectedProjects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<a href="${url}">${xssFilters.inHTMLData(value)}</a>`;
Expand Down

0 comments on commit edfcded

Please sign in to comment.