mirror of
https://github.com/strapi/strapi.git
synced 2025-09-15 19:39:06 +00:00
Fix redirect path for sso & fix customEERoute
This commit is contained in:
parent
69ce8b5287
commit
4fc8e83eb8
@ -2,7 +2,7 @@ import AuthResponse from '../../AuthResponse';
|
|||||||
|
|
||||||
const customRoutes = [
|
const customRoutes = [
|
||||||
{
|
{
|
||||||
Component: AuthResponse,
|
Component: () => ({ default: AuthResponse }),
|
||||||
to: '/auth/login/:authResponse',
|
to: '/auth/login/:authResponse',
|
||||||
exact: true,
|
exact: true,
|
||||||
},
|
},
|
||||||
|
@ -12,7 +12,7 @@ const getAdminStore = async () => strapi.store({ type: 'core', name: 'admin' });
|
|||||||
|
|
||||||
const getPrefixedRedirectUrls = () => {
|
const getPrefixedRedirectUrls = () => {
|
||||||
const { url: adminUrl } = strapi.config.get('admin');
|
const { url: adminUrl } = strapi.config.get('admin');
|
||||||
const prefixUrl = url => `${adminUrl || ''}${url}`;
|
const prefixUrl = url => `${adminUrl || '/admin'}${url}`;
|
||||||
|
|
||||||
return mapValues(prefixUrl, PROVIDER_URLS_MAP);
|
return mapValues(prefixUrl, PROVIDER_URLS_MAP);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user