From a2bdf6cd4dc29b0a20cef30c34741061d1d7dad0 Mon Sep 17 00:00:00 2001
From: Alex <apuret@e-biz.fr>
Date: Thu, 27 Aug 2020 12:30:33 +0200
Subject: [PATCH] fix: broken redirection for web resources, ignore port 3000
 on list

---
 plugins/deadlock-extension/src/view/briefingView.ts | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/plugins/deadlock-extension/src/view/briefingView.ts b/plugins/deadlock-extension/src/view/briefingView.ts
index 4faf5450..f75b3316 100644
--- a/plugins/deadlock-extension/src/view/briefingView.ts
+++ b/plugins/deadlock-extension/src/view/briefingView.ts
@@ -69,9 +69,11 @@ export default class BriefingView extends View {
 
     let pathsLength = 0;
     for (const key in this.userChallengeConfig?.paths) {
-      pathsLength++;
-      const path = this.userChallengeConfig?.paths[key];
-      adresses += `<li>${key} binded on <a href="https://${this.userChallengeConfig?.host}/${path}">${path}</a></li>`;
+      if (key !== '3000') {
+        pathsLength++;
+        const path = this.userChallengeConfig?.paths[key];
+        adresses += `<li>${key} binded on <a href="https://${this.userChallengeConfig?.host}/${path}">${path}/</a></li>`;
+      }
     }
 
     if (pathsLength > 0) {
-- 
GitLab