Merge pull request #2305 from gradido/fix-link-in-messages

fix: Link in Contribution Messages
This commit is contained in:
Moriz Wahl 2022-10-28 09:21:43 +02:00 committed by GitHub
commit 87e0f82a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="mt-2">
<span v-for="({ type, text }, index) in linkifiedMessage" :key="index">
<b-link v-if="type === 'link'" :to="text">{{ text }}</b-link>
<b-link v-if="type === 'link'" :href="text">{{ text }}</b-link>
<span v-else>{{ text }}</span>
</span>
</div>

View File

@ -1,7 +1,7 @@
<template>
<div class="mt-2">
<span v-for="({ type, text }, index) in linkifiedMessage" :key="index">
<b-link v-if="type === 'link'" :to="text">{{ text }}</b-link>
<b-link v-if="type === 'link'" :href="text">{{ text }}</b-link>
<span v-else>{{ text }}</span>
</span>
</div>