Skip to content

Commit e47618b

Browse files
Moved individual component url back to a base of /components/:uuid
1 parent 1bbd5c4 commit e47618b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function configRoutes() {
7272
}
7373
},
7474
{
75-
path: '/projects/:projectuuid/:uuid',
75+
path: '/components/:uuid',
7676
name: 'Component',
7777
props: (route) => ( { uuid: route.params.uuid } ),
7878
component: Component,

src/views/portfolio/projects/ProjectComponents.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
field: "name",
6565
sortable: true,
6666
formatter(value, row, index) {
67-
let url = xssFilters.uriInUnQuotedAttr("../projects/" + row.project.uuid + "/" + row.uuid);
67+
let url = xssFilters.uriInUnQuotedAttr("../components/" + row.uuid);
6868
return `<a href="${url}">${xssFilters.inHTMLData(value)}</a>`;
6969
}
7070
},

0 commit comments

Comments
 (0)