Skip to content

Commit

Permalink
Fix link to projects in Portfolio Access Control view
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Braune <[email protected]>
  • Loading branch information
lukas-braune authored Mar 13, 2024
1 parent 133e564 commit 47cd509
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import permissionsMixin from '../../../mixins/permissionsMixin';
import { Switch as cSwitch } from '@coreui/vue';
import BInputGroupFormInput from '../../../forms/BInputGroupFormInput';
import configPropertyMixin from '../mixins/configPropertyMixin';
import router from '@/router'
export default {
props: {
Expand Down Expand Up @@ -123,7 +124,9 @@ export default {
}
},
projectUri: function (uuid) {
return xssFilters.uriInUnQuotedAttr('../projects/' + uuid);
const href = router.resolve({name: 'Project', params: {uuid: uuid}}).href;
const sanitizedHref = xssFilters.uriInUnQuotedAttr(href);
return sanitizedHref;
},
updateProjectSelection: function (selections) {
this.$root.$emit('bv::hide::modal', 'selectProjectModal');
Expand Down

0 comments on commit 47cd509

Please sign in to comment.