mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 19:32:27 +08:00
bugfix (#37): fix hash issue in URL
This commit is contained in:
@ -22,7 +22,7 @@ export class ViewerPage extends React.Component {
|
|||||||
constructor(props){
|
constructor(props){
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
path: props.match.url.replace('/view', ''),
|
path: props.match.url.replace('/view', '') + (location.hash || ""),
|
||||||
url: null,
|
url: null,
|
||||||
filename: Path.basename(props.match.url.replace('/view', '')) || 'untitled.dat',
|
filename: Path.basename(props.match.url.replace('/view', '')) || 'untitled.dat',
|
||||||
opener: null,
|
opener: null,
|
||||||
|
|||||||
@ -11,7 +11,7 @@ RUN cd /app/ && \
|
|||||||
# build
|
# build
|
||||||
apt-get update -y && \
|
apt-get update -y && \
|
||||||
apt install -y libssl-dev build-essential automake python libcurl3-dev && \
|
apt install -y libssl-dev build-essential automake python libcurl3-dev && \
|
||||||
npm install nodegit --build-from-source && \
|
npm install nodegit --build-from-source > /dev/null && \
|
||||||
npm install && \
|
npm install && \
|
||||||
npm run build && \
|
npm run build && \
|
||||||
# prepare for production
|
# prepare for production
|
||||||
|
|||||||
Reference in New Issue
Block a user