mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
footer links target dynamic
This commit is contained in:
parent
c62e49fef3
commit
1dfdc61220
@ -27,7 +27,7 @@
|
||||
:width="{ base: 'auto' }"
|
||||
style="margin-right: 20px"
|
||||
>
|
||||
<a v-if="item.url" :href="item.url" target="_blank">
|
||||
<a v-if="item.url" :href="item.url" :target="item.target">
|
||||
<ds-text size="large" bold>
|
||||
{{ $t(item.nameIdent) }}
|
||||
</ds-text>
|
||||
|
||||
@ -6,9 +6,10 @@
|
||||
>
|
||||
<slot />
|
||||
</nuxt-link>
|
||||
<a v-else :href="pageParams.externalLink" :target="pageParams.target" :data-test="pageParams.name + '-link'">
|
||||
<a v-else :href="pageParams.externalLink" :target="pageParams.internalPage.target" :data-test="pageParams.name + '-link'">
|
||||
<slot />
|
||||
</a>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
@ -4,8 +4,9 @@ import { defaultPageParamsPages } from '~/components/utils/InternalPages.js'
|
||||
|
||||
const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
|
||||
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating
|
||||
target: '_blank',
|
||||
|
||||
internalPage: {
|
||||
target: '_blank',
|
||||
// footerIdent: 'site.made', // localized string identifier, if undefined default is used
|
||||
// headTitleIdent: 'site.made', // localized string identifier, if undefined default is used
|
||||
// headlineIdent: 'site.made', // localized string identifier, on null it's hidden, if undefined default is used
|
||||
@ -18,8 +19,9 @@ const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
|
||||
const DONATE = defaultPageParamsPages.DONATE.overwrite({
|
||||
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||
externalLink: 'https://ocelot-social.herokuapp.com/donations', // if string is defined and not empty it's dominating
|
||||
target: '_blank',
|
||||
|
||||
internalPage: {
|
||||
target: '_blank',
|
||||
// footerIdent: 'site.donate', // localized string identifier, if undefined default is used
|
||||
// headTitleIdent: 'site.donate', // localized string identifier, if undefined default is used
|
||||
// headlineIdent: 'site.donate', // localized string identifier, on null it's hidden, if undefined default is used
|
||||
@ -32,8 +34,9 @@ const DONATE = defaultPageParamsPages.DONATE.overwrite({
|
||||
const IMPRINT = defaultPageParamsPages.IMPRINT.overwrite({
|
||||
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||
externalLink: 'https://ocelot-social.herokuapp.com/imprint', // if string is defined and not empty it's dominating
|
||||
target: '_blank',
|
||||
|
||||
internalPage: {
|
||||
target: '_blank',
|
||||
// footerIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
||||
// headTitleIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
||||
// headlineIdent: 'site.imprint', // localized string identifier, on null it's hidden, if undefined default is used
|
||||
@ -97,8 +100,9 @@ const FAQ = defaultPageParamsPages.FAQ.overwrite({
|
||||
})
|
||||
const SUPPORT = defaultPageParamsPages.SUPPORT.overwrite({
|
||||
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating
|
||||
target: '_blank',
|
||||
|
||||
internalPage: {
|
||||
target: '_blank',
|
||||
// footerIdent: 'site.support', // localized string identifier, if undefined default is used
|
||||
// headTitleIdent: 'site.support', // localized string identifier, if undefined default is used
|
||||
// headlineIdent: 'site.support', // on null default is used, on empty string it's hidden
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user