diff --git a/packages/vue/src/components/BaseLink/BaseLink.vue b/packages/vue/src/components/BaseLink/BaseLink.vue index f04d98b4..66578cc8 100644 --- a/packages/vue/src/components/BaseLink/BaseLink.vue +++ b/packages/vue/src/components/BaseLink/BaseLink.vue @@ -1,7 +1,10 @@ diff --git a/packages/vue/src/utils/isEduExternalLink.ts b/packages/vue/src/utils/isEduExternalLink.ts new file mode 100644 index 00000000..8430539e --- /dev/null +++ b/packages/vue/src/utils/isEduExternalLink.ts @@ -0,0 +1,12 @@ +export const isEduExternalLink = (url: string): boolean => { + if ( + url && + (url.startsWith('/edu/') || + url.startsWith('/edubeta/') || + url.startsWith('https://www.jpl.nasa.gov/edu/') || + url.startsWith('https://jpl.nasa.gov/edu/')) + ) { + return false + } + return true +}