Skip to content

Commit

Permalink
fix: use admin.url config for root path redirect
Browse files Browse the repository at this point in the history
fixes: #20013
  • Loading branch information
MattieBelt committed Apr 3, 2024
1 parent bd26c78 commit b1a66a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/core/src/middlewares/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const publicStatic: Core.MiddlewareFactory = (
method: 'GET',
path: '/',
handler(ctx) {
ctx.redirect('/admin');
ctx.redirect(strapi.config.get('admin.url', '/admin'));
},
config: { auth: false },
},
Expand Down

0 comments on commit b1a66a7

Please sign in to comment.