logic / comment change

This commit is contained in:
FrankRua 2022-04-18 17:27:34 -04:00
parent e370fc8072
commit 30e7c80912

View file

@ -19,8 +19,9 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
if (existingHeritageOrder) {
return 'heritage';
}
}
return await getLatestPageForRedirection();
}
// 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.
@ -28,7 +29,8 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
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();
return latestPageRoute;