Merge pull request #2135 from Safelite/feature/CSR-2401
CSR-2401 back navigation issue between NextGen and Heritage
This commit is contained in:
commit
efb3e12459
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.
|
||||
*/
|
||||
|
||||
export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLog }) {
|
||||
export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLog, navType }) {
|
||||
const log = getQuerystringParameter(queryStrings.LOG);
|
||||
if (log === "true") {
|
||||
console.log("------------- Navigate to heritage start -----------------");
|
||||
|
|
@ -136,6 +136,10 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
|
|||
heritageParms["promo"] = promo;
|
||||
}
|
||||
|
||||
if (navType) {
|
||||
heritageParms["navType"] = navType;
|
||||
}
|
||||
|
||||
if (
|
||||
(process.env.VUE_APP_HERITAGE_FUNNEL.includes("fixmyglasstest") &&
|
||||
process.env.VUE_APP_CURRENT_ENVIRONMENT === "Localhost") ||
|
||||
|
|
|
|||
|
|
@ -520,7 +520,11 @@ export default {
|
|||
(payment?.insuranceCoverage?.isVerified ||
|
||||
store.getters.order.referralNumber.length === 6)
|
||||
) {
|
||||
navigateToHeritageFunnel({ shouldSaveSession: false });
|
||||
navigateToHeritageFunnel({
|
||||
shouldSaveSession: false,
|
||||
pageNameToLog: "service-location",
|
||||
navType: "back",
|
||||
});
|
||||
} else {
|
||||
this.$router.navigateWithoutSaving(
|
||||
this.navigationScenarios.CLICKED_BACK,
|
||||
|
|
|
|||
Loading…
Reference in a new issue