change router link setup for text-block component

This commit is contained in:
Katie Kroell 2024-01-23 16:45:20 -05:00
parent 3278437d29
commit 73f42613ce

View file

@ -6,12 +6,11 @@
v-for="copy in splitCopyOnCMSPlaceHolder(textBlockCopy)"
:key="copy">
<span v-if="doesCopyContainRouterLink(copy)">
<textLink
linkType="text"
:text="getRouterLinkDisplayTextFromCopy(copy)"
href="javascript:void(0)"
useLoadingModal
@click-event="navigateWithScenario(getRouterLinkRouteFromCopy(copy))" />
<routerLink
:to="{
query: { issPage: `${getRouterLinkRouteFromCopy(copy)}` },
name: 'root',
}">{{ getRouterLinkDisplayTextFromCopy(copy) }}</routerLink>
</span>
<span v-else-if="doesCopyContainTextLink(copy)">
<textLink