Skip to content

Commit 5d2636b

Browse files
Merge pull request #63038 from nextcloud/backport/61435/stable33
[stable33] fix(files): remove leading slash from destination in copy/move toast
2 parents 93dd5b4 + 71e4b5b commit 5d2636b

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export async function* handleCopyMoveNodesTo(nodes: INode[], destination: IFolde
159159
const actionFinished = createLoadingNotification(
160160
method,
161161
nodes.map((node) => node.displayname),
162-
join(destination.dirname, destination.displayname),
162+
join(destination.dirname, destination.displayname).replace(/^\//, ''),
163163
)
164164
const queue = getQueue()
165165
try {

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)