Use forward suffix
parent
dd329559f2
commit
4611187bd7
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue