Settings refactor.
This commit is contained in:
@@ -125,7 +125,7 @@ if (collectApiEndpoint) {
|
||||
const redirects = [
|
||||
{
|
||||
source: '/settings',
|
||||
destination: '/settings/profile',
|
||||
destination: '/settings/preferences',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
@@ -133,11 +133,6 @@ const redirects = [
|
||||
destination: '/teams/:id/websites',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/teams/:id/settings',
|
||||
destination: '/teams/:id/settings/team',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/admin',
|
||||
destination: '/admin/users',
|
||||
@@ -173,12 +168,6 @@ if (cloudMode && cloudUrl) {
|
||||
permanent: false,
|
||||
});
|
||||
|
||||
redirects.push({
|
||||
source: '/teams/:id/settings/:path*',
|
||||
destination: `${cloudUrl}/teams/:id/settings/:path*`,
|
||||
permanent: false,
|
||||
});
|
||||
|
||||
if (disableLogin) {
|
||||
redirects.push({
|
||||
source: '/login',
|
||||
|
||||
Reference in New Issue
Block a user