Fix redirect path for sso & fix customEERoute

This commit is contained in:
Convly 2022-01-28 14:22:14 +01:00
parent 69ce8b5287
commit 4fc8e83eb8
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import AuthResponse from '../../AuthResponse';
const customRoutes = [
{
Component: AuthResponse,
Component: () => ({ default: AuthResponse }),
to: '/auth/login/:authResponse',
exact: true,
},

View File

@ -12,7 +12,7 @@ const getAdminStore = async () => strapi.store({ type: 'core', name: 'admin' });
const getPrefixedRedirectUrls = () => {
const { url: adminUrl } = strapi.config.get('admin');
const prefixUrl = url => `${adminUrl || ''}${url}`;
const prefixUrl = url => `${adminUrl || '/admin'}${url}`;
return mapValues(prefixUrl, PROVIDER_URLS_MAP);
};