From 11479be30275fe99ea5da155dac8ecf153a0f80f Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Wed, 17 Jan 2024 17:11:56 +0100 Subject: [PATCH] More custom domain front-end debug --- client/middleware/custom-domain.global.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }) }