diff --git a/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx b/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx index 70b86779..06f7072b 100644 --- a/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx +++ b/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx @@ -115,7 +115,7 @@ const NavigationEntry = (props: { events: Registry, path: str const oldPath = fileUrl.split("/").slice(0, -1).join("/") + "/"; props.events.fire("action_rename_file", { - newPath: props.path + "/", + newPath: props.path.endsWith("/") ? props.path : props.path + "/", oldPath: oldPath, oldName: name, newName: name