Skip to content

Commit

Permalink
Merge pull request #2327 from nextcloud/backport/2326/stable28
Browse files Browse the repository at this point in the history
[stable28] Properly save old route when opening the viewer
  • Loading branch information
artonge authored Jun 6, 2024
2 parents 66db46f + 0028897 commit cb7c4b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions css/viewer-index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

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 cb7c4b1

Please sign in to comment.