Enhance link security in Orders.vue with noopener,noreferrer and add conditional slot rendering to ViewportResponsiveWrapper.vue.

This commit is contained in:
Jeppe Bundgaard
2026-03-05 12:28:57 +01:00
parent 15d1cd8558
commit 721e942a12
2 changed files with 6 additions and 5 deletions
@@ -673,7 +673,8 @@ const showChangeOrderInvoiceCollectionForm = async (id) => {
const downloadLink = response.data.data.download_link;
if (autoOpen) {
// Open the download link in a new tab
window.open(downloadLink, '_blank');
//window.open(downloadLink, '_blank');
window.open(downloadLink, '_blank', 'noopener,noreferrer');
}
return response.data.data.download_link;
}).catch((error) => {
@@ -17,16 +17,16 @@ const isDesktop = useMediaQuery('(min-width: 1025px)', getMatch('(min-width: 102
<template>
<template v-if="isMobile">
<slot name="mobile" />
<slot name="mobile" v-if="$slots.mobile" />
</template>
<template v-else-if="isTablet">
<slot name="tablet" />
<slot name="tablet" v-if="$slots.tablet" />
</template>
<template v-else-if="isDesktop">
<slot name="desktop" />
<slot name="desktop" v-if="$slots.desktop" />
</template>
<template v-else>
<slot name="default" />
<slot name="default" v-if="$slots.default" />
</template>
</template>