From f29dbc520f15d2627d0fc03e8e0e220c5d1b892f Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Wed, 26 May 2021 16:18:46 +0200
Subject: [PATCH] FIX #16992 TIME 0:05 redirect list after creation

---
 src/frontend/app/administration/otp/otp.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/app/administration/otp/otp.component.ts b/src/frontend/app/administration/otp/otp.component.ts
index d695fd4eb4..ddb988e755 100644
--- a/src/frontend/app/administration/otp/otp.component.ts
+++ b/src/frontend/app/administration/otp/otp.component.ts
@@ -255,7 +255,7 @@ export class OtpComponent implements OnInit, OnDestroy {
         this.http.post('../rest/connectors', this.connector)
             .pipe(
                 tap((data: any) => {
-                    this.router.navigate(['/administration/otps/' + data.id]);
+                    this.router.navigate(['/administration/otps']);
                     this.notificationService.success('lang.connectorAdded');
                 }),
                 catchError((err: any) => {
-- 
GitLab