diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-01-25 15:06:32 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-01-25 15:07:52 +0100 |
commit | 7b71f59bab407dd0279a5d5509512b0d170200bb (patch) | |
tree | 1d4210939082d337cf64fee570a6d7863eece80a /apps/files/src | |
parent | 4023f1e582a4020a438ee52e050ce9261b18db28 (diff) | |
download | nextcloud-server-7b71f59bab407dd0279a5d5509512b0d170200bb.tar.gz nextcloud-server-7b71f59bab407dd0279a5d5509512b0d170200bb.zip |
fix(files): Ensure the correct `dir` query is set on folder action
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/actions/openFolderAction.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/src/actions/openFolderAction.ts b/apps/files/src/actions/openFolderAction.ts index e6d8c7f7edf..791b328b3ed 100644 --- a/apps/files/src/actions/openFolderAction.ts +++ b/apps/files/src/actions/openFolderAction.ts @@ -19,7 +19,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ -import { join } from 'path' import { Permission, Node, FileType, View, FileAction, DefaultType } from '@nextcloud/files' import { translate as t } from '@nextcloud/l10n' import FolderSvg from '@mdi/svg/svg/folder.svg?raw' @@ -49,7 +48,7 @@ export const action = new FileAction({ && (node.permissions & Permission.READ) !== 0 }, - async exec(node: Node, view: View, dir: string) { + async exec(node: Node, view: View) { if (!node || node.type !== FileType.Folder) { return false } @@ -57,7 +56,7 @@ export const action = new FileAction({ window.OCP.Files.Router.goToRoute( null, { view: view.id, fileid: node.fileid }, - { dir: join(dir, node.basename) }, + { dir: node.path }, ) return null }, |