feature (share): workable version

This commit is contained in:
Mickael KERJEAN 2018-11-02 10:46:45 +11:00
parent f87fddbb32
commit 1ff46452a2
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@
- Manage your files from a browser
- Org mode friendly ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Release-0.1:-Org-Mode-everywhere))
- Photo management ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Release-0.2:-Photo-Management))
- Flexible Share mechanism
- User friendly
- Mobile friendly
- Customisable ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Customisation))

View file

@ -70,7 +70,7 @@ export class SharePage extends React.Component {
if(filetype(this.state.path) === "directory"){
return ( <Redirect to={`/files/?share=${this.state.share}`} /> );
}else{
return ( <Redirect to={`/view/${basename(this.state.path)}?share=${this.state.share}`} /> );
return ( <Redirect to={`/view/${basename(this.state.path)}?nav=false&share=${this.state.share}`} /> );
}
} else if (this.state.key === null){
return (