Skip to content

Commit

Permalink
Merge pull request #2322 from nextcloud/artonge/fix/properly_save_cur…
Browse files Browse the repository at this point in the history
…rent_state

Properly save old route when opening the viewer
  • Loading branch information
susnux authored Jun 4, 2024
2 parents 25fff59 + 80a0854 commit 34d4d79
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 14 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.

Binary file modified cypress/snapshots/base/visual-regression.cy.ts/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/snapshots/base/visual-regression.cy.ts/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/snapshots/base/visual-regression.cy.ts/non-dav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/snapshots/base/visual-regression.cy.ts/video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/index-BahqIHTU.mjs.map

Large diffs are not rendered by default.

14 changes: 4 additions & 10 deletions js/viewer-main.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.mjs.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 34d4d79

Please sign in to comment.