Skip to content

Beautiful Open-Source Form Builder

More custom domain front-end debug

Julien Nahum11479be30275
diff --git a/client/middleware/custom-domain.global.js b/client/middleware/custom-domain.global.js
index 7a67842e6..376b29d2d 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
})
}