Use forward suffix
parent
dd329559f2
commit
4611187bd7
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ const SessionForwardsComponent = ({
|
|||
</StyledTableCell>
|
||||
<StyledTableCell>
|
||||
{handleForwardClick ? (
|
||||
<Link href="#" onClick={handleForwardClick(row.from)}>
|
||||
<Link href="#" onClick={handleForwardClick(row)}>
|
||||
{row.from}
|
||||
</Link>
|
||||
) : (
|
||||
|
|
Loading…
Reference in New Issue