mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Moving create community to the top so "create" is not interpreted as an ID
This commit is contained in:
@@ -33,6 +33,11 @@ const COMMUNITY_EDIT_PATH = 'edit';
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forChild([
|
RouterModule.forChild([
|
||||||
|
{
|
||||||
|
path: COMMUNITY_CREATE_PATH,
|
||||||
|
component: CreateCommunityPageComponent,
|
||||||
|
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -58,11 +63,6 @@ const COMMUNITY_EDIT_PATH = 'edit';
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: COMMUNITY_CREATE_PATH,
|
|
||||||
component: CreateCommunityPageComponent,
|
|
||||||
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
Reference in New Issue
Block a user