Use forward suffix

master
Tudor Stanciu 2020-11-25 01:30:02 +02:00
parent dd329559f2
commit 4611187bd7
2 changed files with 4 additions and 4 deletions

View File

@ -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();
};

View File

@ -74,7 +74,7 @@ const SessionForwardsComponent = ({
</StyledTableCell>
<StyledTableCell>
{handleForwardClick ? (
<Link href="#" onClick={handleForwardClick(row.from)}>
<Link href="#" onClick={handleForwardClick(row)}>
{row.from}
</Link>
) : (