Merge pull request #1956 from Safelite/feature/debugUrl

change variable for heritage url
This commit is contained in:
CarlNation 2024-08-28 11:23:24 -04:00 committed by GitHub
commit 7419d6cc5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ import { settleAllPromises } from "@/helpers/layout-helper";
import experimentMixin from "@/mixins/experiment-mixin";
import { experimentSettings } from "@/constants/experiments";
import { includesWindshieldReplacement } from "@/helpers/damage-helper";
import { applicationConfig } from "@/constants/application-config.js";
import store from "@/store";
import router from "@/router";
@ -106,8 +107,8 @@ export async function getImplicitNavigation(toRoute) {
*/
export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLog }) {
console.log(new Date() + "navigateToHeritageFunnel: externalUrl:" + externalUrls.HERITAGE_FUNNEL);
console.log(new Date() + "navigateToHeritageFunnel: VUE_APP_HERITAGE_FUNNEL:" + process.env.VUE_APP_HERITAGE_FUNNEL);
console.log(new Date() + " navigateToHeritageFunnel: " + JSON.stringify(applicationConfig));
console.log(new Date() + " navigateToHeritageFunnel: " + applicationConfig.HERITAGE_FUNNEL);
// Create the order (or save existing order) when navigating to Heritage Funnel.
if (shouldSaveSession) {
await saveSession({ pageNameToLog: pageNameToLog, shouldAwaitSaveSessionQueue: true });
@ -135,7 +136,7 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
heritageParms["forceEndToEndInsurance"] = true;
}
router.navigateToExternalUrl(externalUrls.HERITAGE_FUNNEL, heritageParms);
router.navigateToExternalUrl(applicationConfig.HERITAGE_FUNNEL, heritageParms);
}
export async function skipVinLookup() {