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); setForwardOptions(null);
}; };
const handleForwardClick = (link) => (event) => { const handleForwardClick = (forward) => (event) => {
window.open(`${domain.scheme}://${domain.name}${link}`, "_blank"); const url = `${domain.scheme}://${domain.name}${forward.from}${forward.suffix || ""}`;
window.open(url, "_blank");
event.preventDefault(); event.preventDefault();
}; };

View File

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