mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add target url dynamic
This commit is contained in:
parent
a6517ca0d8
commit
31a4be9375
@ -6,7 +6,7 @@
|
|||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<a v-else :href="pageParams.externalLink" target="_blank" :data-test="pageParams.name + '-link'">
|
<a v-else :href="pageParams.externalLink" :target="pageParams.target" :data-test="pageParams.name + '-link'">
|
||||||
<slot />
|
<slot />
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
export default {
|
export default {
|
||||||
MENU: [
|
MENU: [
|
||||||
// {
|
{
|
||||||
// nameIdent: 'nameIdent',
|
nameIdent: 'nameIdent',
|
||||||
// path: '/',
|
path: '/',
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// nameIdent: 'nameIdent',
|
nameIdent: 'nameIdent',
|
||||||
// url: 'https://ocelot.social',
|
url: 'https://ocelot.social',
|
||||||
// },
|
target: '_blank'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { defaultPageParamsPages } from '~/components/utils/InternalPages.js'
|
|||||||
|
|
||||||
const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
|
const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
|
||||||
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating
|
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating
|
||||||
|
target: '_blank',
|
||||||
internalPage: {
|
internalPage: {
|
||||||
// footerIdent: 'site.made', // localized string identifier, if undefined default is used
|
// footerIdent: 'site.made', // localized string identifier, if undefined default is used
|
||||||
// headTitleIdent: 'site.made', // localized string identifier, if undefined default is used
|
// headTitleIdent: 'site.made', // localized string identifier, if undefined default is used
|
||||||
@ -18,7 +18,7 @@ const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
|
|||||||
const DONATE = defaultPageParamsPages.DONATE.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
|
// 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
|
externalLink: 'https://ocelot-social.herokuapp.com/donations', // if string is defined and not empty it's dominating
|
||||||
|
target: '_blank',
|
||||||
internalPage: {
|
internalPage: {
|
||||||
// footerIdent: 'site.donate', // localized string identifier, if undefined default is used
|
// footerIdent: 'site.donate', // localized string identifier, if undefined default is used
|
||||||
// headTitleIdent: 'site.donate', // localized string identifier, if undefined default is used
|
// headTitleIdent: 'site.donate', // localized string identifier, if undefined default is used
|
||||||
@ -32,7 +32,7 @@ const DONATE = defaultPageParamsPages.DONATE.overwrite({
|
|||||||
const IMPRINT = defaultPageParamsPages.IMPRINT.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
|
// 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
|
externalLink: 'https://ocelot-social.herokuapp.com/imprint', // if string is defined and not empty it's dominating
|
||||||
|
target: '_blank',
|
||||||
internalPage: {
|
internalPage: {
|
||||||
// footerIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
// footerIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
||||||
// headTitleIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
// headTitleIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
||||||
@ -97,7 +97,7 @@ const FAQ = defaultPageParamsPages.FAQ.overwrite({
|
|||||||
})
|
})
|
||||||
const SUPPORT = defaultPageParamsPages.SUPPORT.overwrite({
|
const SUPPORT = defaultPageParamsPages.SUPPORT.overwrite({
|
||||||
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating
|
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating
|
||||||
|
target: '_blank',
|
||||||
internalPage: {
|
internalPage: {
|
||||||
// footerIdent: 'site.support', // localized string identifier, if undefined default is used
|
// footerIdent: 'site.support', // localized string identifier, if undefined default is used
|
||||||
// headTitleIdent: 'site.support', // localized string identifier, if undefined default is used
|
// headTitleIdent: 'site.support', // localized string identifier, if undefined default is used
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user