Skip to content

Commit

Permalink
fix: Allow custom target names for the link target to reuse tabs / wi…
Browse files Browse the repository at this point in the history
…ndows

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
  • Loading branch information
susnux committed Feb 13, 2023
1 parent 9a82660 commit d797dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcActionLink/NcActionLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
type: String,
default: '_self',
validator: value => {
return ['_blank', '_self', '_parent', '_top'].indexOf(value) > -1
return value && (!value.startsWith('_') || ['_blank', '_self', '_parent', '_top'].indexOf(value) > -1)
},
},
/**
Expand Down

0 comments on commit d797dd3

Please sign in to comment.