Allow use of same domain in different workspaces
This commit is contained in:
5
client/middleware/custom-domain.global.js
vendored
5
client/middleware/custom-domain.global.js
vendored
@@ -41,10 +41,7 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
||||
if (!customDomainAllowedRoutes.includes(to.name)) {
|
||||
// Custom domain only allowed for form url
|
||||
return redirectToMainDomain({
|
||||
reason: 'route_not_allowed',
|
||||
route: to,
|
||||
from: from,
|
||||
customDomainAllowedRoutes: customDomainAllowedRoutes
|
||||
reason: 'route_not_allowed'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user