CSR-2401 back navigation issue between NextGen and Heritage
CSR-2401 back navigation issue between NextGen and Heritage
This commit is contained in:
parent
8462ebd03d
commit
67b7efc50e
2 changed files with 10 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ export async function getImplicitNavigation(toRoute) {
|
||||||
Used to navigate to the heritage funnel with the correct query string and url.
|
Used to navigate to the heritage funnel with the correct query string and url.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLog }) {
|
export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLog, navType }) {
|
||||||
const log = getQuerystringParameter(queryStrings.LOG);
|
const log = getQuerystringParameter(queryStrings.LOG);
|
||||||
if (log === "true") {
|
if (log === "true") {
|
||||||
console.log("------------- Navigate to heritage start -----------------");
|
console.log("------------- Navigate to heritage start -----------------");
|
||||||
|
|
@ -136,6 +136,10 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
|
||||||
heritageParms["promo"] = promo;
|
heritageParms["promo"] = promo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (navType) {
|
||||||
|
heritageParms["navType"] = navType;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(process.env.VUE_APP_HERITAGE_FUNNEL.includes("fixmyglasstest") &&
|
(process.env.VUE_APP_HERITAGE_FUNNEL.includes("fixmyglasstest") &&
|
||||||
process.env.VUE_APP_CURRENT_ENVIRONMENT === "Localhost") ||
|
process.env.VUE_APP_CURRENT_ENVIRONMENT === "Localhost") ||
|
||||||
|
|
|
||||||
|
|
@ -520,7 +520,11 @@ export default {
|
||||||
(payment?.insuranceCoverage?.isVerified ||
|
(payment?.insuranceCoverage?.isVerified ||
|
||||||
store.getters.order.referralNumber.length === 6)
|
store.getters.order.referralNumber.length === 6)
|
||||||
) {
|
) {
|
||||||
navigateToHeritageFunnel({ shouldSaveSession: false });
|
navigateToHeritageFunnel({
|
||||||
|
shouldSaveSession: false,
|
||||||
|
pageNameToLog: "service-location",
|
||||||
|
navType: "back",
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$router.navigateWithoutSaving(
|
this.$router.navigateWithoutSaving(
|
||||||
this.navigationScenarios.CLICKED_BACK,
|
this.navigationScenarios.CLICKED_BACK,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue