mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 20:23:32 +08:00
fix (share): deep link from shared links
This commit is contained in:
@ -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()}>
|
||||
|
||||
Reference in New Issue
Block a user