Skip to content

Commit 0d6947d

Browse files
xingzhang-suserushk014
authored andcommitted
Solution for registry record navigation issue on the URL
1 parent 5e7a7f7 commit 0d6947d

File tree

1 file changed

+5
-1
lines changed
  • pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner

1 file changed

+5
-1
lines changed

pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Registries.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
:use-query-params-for-simple-filtering="true"
4545
/>
4646
<p v-for="row of rows">
47-
<RouterLink :to="`registries/${ row.id }`">
47+
<RouterLink :to="`/c/${this.$route.params.cluster}/${ this.PRODUCT_NAME }/registries/${ row.id }`">
4848
{{ row.id }}
4949
</RouterLink>
5050
</p>
@@ -59,6 +59,9 @@
5959
import RecentUpdatedRegistries from "@sbombastic-image-vulnerability-scanner/components/RecentUpdatedRegistries";
6060
import StatusDistribution from "@sbombastic-image-vulnerability-scanner/components/StatusDistribution";
6161
import { REGISTRY_SCAN_TABLE } from "@sbombastic-image-vulnerability-scanner/config/table-headers";
62+
import {
63+
PRODUCT_NAME,
64+
} from "@sbombastic-image-vulnerability-scanner/types";
6265
6366
export default {
6467
name: 'registries',
@@ -70,6 +73,7 @@
7073
data() {
7174
return {
7275
content: ref("Registries"),
76+
PRODUCT_NAME: PRODUCT_NAME,
7377
registryStatusList: [
7478
{
7579
scan_name: "prod repo",

0 commit comments

Comments
 (0)