Web: Files: Added opportunity to open documents by old links

This commit is contained in:
Alexey Safronov 2021-01-14 11:02:31 +03:00
parent 576f473f4e
commit a1612a39c9
2 changed files with 4 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class App extends React.Component {
/>
<Route
exact
path={`${homepage}/doceditor`}
path={[`${homepage}/doceditor`, `${homepage}/DocEditor.aspx`]}
component={DocEditor}
/>
<PrivateRoute

View File

@ -27,7 +27,9 @@ class PureEditor extends React.Component {
super(props);
const urlParams = getObjectByLocation(window.location);
const fileId = urlParams ? urlParams.fileId || null : null;
const fileId = urlParams
? urlParams.fileId || urlParams.fileid || null
: null;
const doc = urlParams ? urlParams.doc || null : null;
const desktop = window["AscDesktopEditor"] !== undefined;