Add route parameter handling for appeal paths and enhance AuthGuard to support login via code query parameter

This commit is contained in:
2025-11-08 17:42:29 +01:00
parent e8f952e7e2
commit e83d109012
2 changed files with 28 additions and 4 deletions
+12 -3
View File
@@ -118,18 +118,27 @@ export const routes: Routes = [
path: 'forms',
loadComponent: () => import('./pages/forms/forms.component').then(m => m.FormsComponent)
},
{
path: 'appeal/:code',
redirectTo: 'forms/appeal/:code',
pathMatch: 'full'
},
{
path: 'appeal',
redirectTo: 'forms/appeal',
pathMatch: 'full'
},
{
path: 'forms/appeal/:code',
loadComponent: () => import('./pages/forms/appeal/appeal.component').then(m => m.AppealComponent),
canActivate: [AuthGuard],
data: {requiredAuthorizations: ['SCOPE_user']}
},
{
path: 'forms/appeal',
loadComponent: () => import('./pages/forms/appeal/appeal.component').then(m => m.AppealComponent),
canActivate: [AuthGuard],
data: {
requiredAuthorizations: ['SCOPE_user']
}
data: {requiredAuthorizations: ['SCOPE_user']}
},
{
path: 'forms/sent',