Return early so page-not-found errors only create one error on bus.

This commit is contained in:
Chloe Herd 2024-05-09 15:54:06 -04:00
parent 0e4bb4bef2
commit bbb3cafc59

View file

@ -160,6 +160,7 @@ const routes = [
if (!isExistingFmgPageName(to.query.fmgPage)) {
console.log("Not an existing fmg page name:" + to.query.fmgPage);
GoToFunnelStartOn404(next);
return;
}
// Get route info for the given url. Names will have a 1:1 relationship with names in the Cms.