Skip to content

Commit

Permalink
fix(LinkView): Try to use window.location.replace to redirect Links -…
Browse files Browse the repository at this point in the history
… refs #158717
  • Loading branch information
avoinea committed Feb 17, 2023
1 parent 3cf2634 commit 7210193
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LinkView extends Component {
if (isInternalURL(remoteUrl)) {
this.props.history.replace(flattenToAppURL(remoteUrl));
} else if (!__SERVER__) {
window.location.href = flattenToAppURL(remoteUrl);
window.location.replace(flattenToAppURL(remoteUrl));
}
}
}
Expand Down

0 comments on commit 7210193

Please sign in to comment.