From 4611187bd7d23fec93a0153dc65238dff6953daa Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Wed, 25 Nov 2020 01:30:02 +0200 Subject: [PATCH] Use forward suffix --- src/features/server/components/ActiveSessionContainer.js | 6 +++--- src/features/session/components/SessionForwardsComponent.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/server/components/ActiveSessionContainer.js b/src/features/server/components/ActiveSessionContainer.js index cd4ebe6..59277b9 100644 --- a/src/features/server/components/ActiveSessionContainer.js +++ b/src/features/server/components/ActiveSessionContainer.js @@ -33,9 +33,9 @@ const ActiveSessionContainer = ({ actions, session, forwards, domain }) => { setForwardOptions(null); }; - const handleForwardClick = (link) => (event) => { - window.open(`${domain.scheme}://${domain.name}${link}`, "_blank"); - + const handleForwardClick = (forward) => (event) => { + const url = `${domain.scheme}://${domain.name}${forward.from}${forward.suffix || ""}`; + window.open(url, "_blank"); event.preventDefault(); }; diff --git a/src/features/session/components/SessionForwardsComponent.js b/src/features/session/components/SessionForwardsComponent.js index d830d54..684ae71 100644 --- a/src/features/session/components/SessionForwardsComponent.js +++ b/src/features/session/components/SessionForwardsComponent.js @@ -74,7 +74,7 @@ const SessionForwardsComponent = ({ {handleForwardClick ? ( - + {row.from} ) : (