task/853 [UI] Erroneous navigation when changing domains

This commit is contained in:
Jose Ignacio Recuerda Cambil 2019-05-09 09:54:14 +02:00 committed by Mustapha Zorgati
parent c7e2e881e1
commit 4eb7a6f74b
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ import { WorkbasketDistributionTargetsResource } from 'app/models/workbasket-dis
import { WorkbasketService } from 'app/shared/services/workbasket/workbasket.service';
import { AlertService } from 'app/services/alert/alert.service';
import { GeneralModalService } from 'app/services/general-modal/general-modal.service';
import { SavingWorkbasketService, SavingInformation } from 'app/administration/services/saving-workbaskets/saving-workbaskets.service';
import { SavingWorkbasketService } from 'app/administration/services/saving-workbaskets/saving-workbaskets.service';
import { RequestInProgressService } from 'app/services/requestInProgress/request-in-progress.service';
import { DualListComponent } from './dual-list/dual-list.component';

View File

@ -107,9 +107,9 @@ export class DomainService {
private getNavigationUrl(): string {
if (this.router.url.indexOf('workbaskets') !== -1) {
return 'administration/workbaskets';
return 'taskana/administration/workbaskets';
} else if (this.router.url.indexOf('classifications') !== -1) {
return 'administration/classifications';
return 'taskana/administration/classifications';
}
}
}

View File

@ -112,7 +112,7 @@ export class TaskdetailsComponent implements OnInit, OnDestroy {
this.deleteTaskSubscription = this.taskService.deleteTask(this.task).subscribe(() => {
this.taskService.publishUpdatedTask();
this.task = null;
this.router.navigate([`/workplace/tasks`]);
this.router.navigate([`taskana/workplace/tasks`]);
}, err => {
this.generalModalService.triggerMessage(
new MessageModal('An error occurred while deleting the task ', err));