diff --git a/dmp-frontend/src/app/ui/navbar/user-dialog/user-dialog.component.ts b/dmp-frontend/src/app/ui/navbar/user-dialog/user-dialog.component.ts index 682487f6e..053fa9555 100644 --- a/dmp-frontend/src/app/ui/navbar/user-dialog/user-dialog.component.ts +++ b/dmp-frontend/src/app/ui/navbar/user-dialog/user-dialog.component.ts @@ -4,6 +4,7 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { AuthService } from '../../../core/services/auth/auth.service'; import { Observable, Subscription, fromEvent } from 'rxjs'; +import { RouterUtilsService } from '@app/core/services/router/router-utils.service'; @Component({ selector: 'app-user-dialog-component', @@ -21,6 +22,7 @@ export class UserDialogComponent implements OnInit, OnDestroy { private authentication: AuthService, private router: Router, public dialogRef: MatDialogRef, + private routerUtils: RouterUtilsService, @Inject(MAT_DIALOG_DATA) public data: any ) { } @@ -68,6 +70,6 @@ export class UserDialogComponent implements OnInit, OnDestroy { public navigateToMyDmps() { this.dialogRef.close(); - this.router.navigate(['/plans']); + this.router.navigate([this.routerUtils.generateUrl('/plans')]); } } diff --git a/dmp-frontend/src/app/ui/supportive-material-editor/supportive-material-editor.component.ts b/dmp-frontend/src/app/ui/supportive-material-editor/supportive-material-editor.component.ts index fd1e28a27..a6153dcd6 100644 --- a/dmp-frontend/src/app/ui/supportive-material-editor/supportive-material-editor.component.ts +++ b/dmp-frontend/src/app/ui/supportive-material-editor/supportive-material-editor.component.ts @@ -9,13 +9,11 @@ import { SupportiveMaterial, SupportiveMaterialPersist } from '@app/core/model/s import { AuthService } from '@app/core/services/auth/auth.service'; import { ConfigurationService } from '@app/core/services/configuration/configuration.service'; import { LanguageHttpService } from '@app/core/services/language/language.http.service'; -import { LanguageService } from '@app/core/services/language/language.service'; import { LockService } from '@app/core/services/lock/lock.service'; import { LoggingService } from '@app/core/services/logging/logging-service'; import { SnackBarNotificationLevel, UiNotificationService } from '@app/core/services/notification/ui-notification-service'; import { SupportiveMaterialService } from '@app/core/services/supportive-material/supportive-material.service'; import { EnumUtils } from '@app/core/services/utilities/enum-utils.service'; -import { FileUtils } from '@app/core/services/utilities/file-utils.service'; import { QueryParamsService } from '@app/core/services/utilities/query-params.service'; import { BaseEditor } from '@common/base/base-editor'; import { FormService } from '@common/forms/form-service'; @@ -28,6 +26,7 @@ import { map, takeUntil } from 'rxjs/operators'; import { SupportiveMaterialEditorModel } from './supportive-material-editor.model'; import { SupportiveMaterialEditorResolver } from './supportive-material-editor.resolver'; import { SupportiveMaterialEditorService } from './supportive-material-editor.service'; +import { RouterUtilsService } from '@app/core/services/router/router-utils.service'; @Component({ @@ -63,11 +62,10 @@ export class SupportiveMaterialEditorComponent extends BaseEditor void): void { diff --git a/dmp-frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.component.ts b/dmp-frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.component.ts index 24d76b6dc..5a45db7f5 100644 --- a/dmp-frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.component.ts +++ b/dmp-frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.component.ts @@ -35,6 +35,7 @@ import { map, takeUntil } from 'rxjs/operators'; import { NotificationTemplateEditorModel } from './notification-template-editor.model'; import { NotificationTemplateEditorResolver } from './notification-template-editor.resolver'; import { NotificationTemplateEditorService } from './notification-template-editor.service'; +import { RouterUtilsService } from '@app/core/services/router/router-utils.service'; @Component({ selector: 'app-notification-template-editor', @@ -98,6 +99,7 @@ export class NotificationTemplateEditorComponent extends BaseEditor void): void {