fix (share): deep link from shared links

This commit is contained in:
Mickael Kerjean
2022-07-09 23:06:56 +10:00
parent 3bbf6e4334
commit a86a2f1054

View File

@ -74,7 +74,10 @@ export class SharePageComponent extends React.Component {
const url = findParams("next");
if (url[0] === "/") {
requestAnimationFrame(() => {
window.location.pathname = url;
window.location.href = new URL(
`${url}?share=${this.props.match.params.id}`,
location,
).toString();
});
return (
<div style={marginTop()}>