diff --git a/client/middleware/custom-domain.global.js b/client/middleware/custom-domain.global.js index 7a67842..376b29d 100644 --- a/client/middleware/custom-domain.global.js +++ b/client/middleware/custom-domain.global.js @@ -42,7 +42,8 @@ export default defineNuxtRouteMiddleware((to, from) => { // Custom domain only allowed for form url return redirectToMainDomain({ reason: 'route_not_allowed', - route: to.name, + route: to, + from: from, customDomainAllowedRoutes: customDomainAllowedRoutes }) }