logic / comment change
This commit is contained in:
parent
e370fc8072
commit
30e7c80912
1 changed files with 4 additions and 2 deletions
|
|
@ -19,8 +19,9 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
|
||||||
if (existingHeritageOrder) {
|
if (existingHeritageOrder) {
|
||||||
return 'heritage';
|
return 'heritage';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
return await getLatestPageForRedirection();
|
||||||
|
}
|
||||||
|
|
||||||
// If navigating to a specific page, and that page is not part of the vin pages.
|
// If navigating to a specific page, and that page is not part of the vin pages.
|
||||||
// Return that page, so that it can navigate like normal.
|
// Return that page, so that it can navigate like normal.
|
||||||
|
|
@ -28,7 +29,8 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
|
||||||
return overrideYmmsDirectionIfNeeded(toRoute, toRoute.query[queryStrings.FMG_PAGE]);
|
return overrideYmmsDirectionIfNeeded(toRoute, toRoute.query[queryStrings.FMG_PAGE]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this is not a direct link to a page using fmgPage, get the latest page.
|
// If this is not a direct link to a page using fmgPage, not from Safelite.com CTA or this is a vin related page.
|
||||||
|
// Get the latest page for redirection.
|
||||||
const latestPageRoute = await getLatestPageForRedirection();
|
const latestPageRoute = await getLatestPageForRedirection();
|
||||||
|
|
||||||
return latestPageRoute;
|
return latestPageRoute;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue