diff --git a/src/runtime/components/BitinflowFirstLevelHref.vue b/src/runtime/components/BitinflowFirstLevelHref.vue index b3ec6ad..1a235f5 100644 --- a/src/runtime/components/BitinflowFirstLevelHref.vue +++ b/src/runtime/components/BitinflowFirstLevelHref.vue @@ -22,12 +22,19 @@ export default { href: { type: String, default: '/' + }, + exact: { + type: Boolean, + default: false } }, computed: { calculateClasses: function () { return { - 'router-link-active': document.location.href.includes(this.href) && this.href !== '/', + 'router-link-active': + this.exact + ? document.location.href === this.href + : document.location.href.includes(this.href) && this.href !== '/', } } }