Skip to content

Commit

Permalink
fix: Properly save old route when opening the viewer
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed May 30, 2024
1 parent cb74712 commit cd3bd0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/FilesActionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export default function(node, view, dir) {
const path = `${node.dirname}/${node.basename}`.replace(/^\/\//, '/')
const oldRoute = [
window.OCP.Files.Router.name,
window.OCP.Files.Router.params,
window.OCP.Files.Router.query,
{ ...window.OCP.Files.Router.params },
{ ...window.OCP.Files.Router.query },
true,
]
const onClose = () => window.OCP.Files.Router.goToRoute(...oldRoute)
Expand Down

0 comments on commit cd3bd0d

Please sign in to comment.