Merge pull request #87 from Safelite/enhancement/replace-hard-coded-querystring-in-alert

Use the query string value from config
This commit is contained in:
Kulbhushan Kaushik 2022-12-29 15:26:19 -05:00 committed by GitHub
commit 2653e8f8a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@ const applicationConfig = {
APPLICATION_NAME: "SelfService",
SITE_ENTRY_TRIGGER_VALUE: "SelfService",
APPLICATION_ABBREVIATION: "iss",
APPLICATION_QUERYSTRING: 'issPage',
};
export { applicationConfig };

View file

@ -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