Skip to content

Commit

Permalink
Web: Fix open '/Products/Files' and '/Products/Files/?desktop=true' (…
Browse files Browse the repository at this point in the history
…desktop provider 'onlyoffice' issue)
  • Loading branch information
AlexeySafronov committed Oct 6, 2021
1 parent f8fe418 commit 5dbf54c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion products/ASC.Files/Client/src/pages/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PureHome extends React.Component {
getFileInfo,
} = this.props;

const reg = new RegExp(`${homepage}((/?)$|/filter)`, "gm"); //TODO: Always find?
const reg = new RegExp(`${homepage}((/?)$|/filter)`, "gmi"); //TODO: Always find?
const match = window.location.pathname.match(reg);
let filterObj = null;

Expand Down
11 changes: 10 additions & 1 deletion web/ASC.Web.Client/src/Shell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,16 @@ const Shell = ({ items = [], page = "home", ...rest }) => {
return (
<PrivateRoute
key={m.id}
path={appURL}
path={
m.appName === "files"
? [
"/Products/Files",
"/Products/Files/",
"/Products/Files/?desktop=true",
appURL,
]
: appURL
}
component={System}
system={system}
/>
Expand Down

0 comments on commit 5dbf54c

Please sign in to comment.