Use the query string value from config
This replaces the 'fmgPage' hard-coded value.
This commit is contained in:
parent
ad3708a583
commit
99fab0cc13
2 changed files with 6 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ const applicationConfig = {
|
|||
APPLICATION_NAME: "SelfService",
|
||||
SITE_ENTRY_TRIGGER_VALUE: "SelfService",
|
||||
APPLICATION_ABBREVIATION: "iss",
|
||||
APPLICATION_QUERYSTRING: 'issPage',
|
||||
};
|
||||
|
||||
export { applicationConfig };
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
<span v-else>
|
||||
<router-link
|
||||
:to="{
|
||||
query: { fmgPage: `${getRouterLinkRouteFromCopy(copy)}` },
|
||||
query: { [applicationQueryString]: `${getRouterLinkRouteFromCopy(copy)}` },
|
||||
name: 'root',
|
||||
}"
|
||||
>{{ getRouterLinkDisplayTextFromCopy(copy) }}</router-link
|
||||
|
|
@ -45,6 +45,7 @@ import {
|
|||
getRouterLinkDisplayTextFromCopy,
|
||||
splitCMSCopyOnParagraphTag,
|
||||
} from "@/helpers/cms-content-helper";
|
||||
import { applicationConfig } from '@/constants/application-config';
|
||||
|
||||
export default {
|
||||
name: "alert",
|
||||
|
|
@ -75,6 +76,9 @@ export default {
|
|||
},
|
||||
},
|
||||
computed: {
|
||||
applicationQueryString() {
|
||||
return applicationConfig.APPLICATION_QUERYSTRING;
|
||||
},
|
||||
alertHeadline() {
|
||||
return this.manualHeadline
|
||||
? this.manualHeadline
|
||||
|
|
|
|||
Loading…
Reference in a new issue