diff --git a/frontend/src/components/shared/FileList.vue b/frontend/src/components/shared/FileList.vue index 7c32e0ab0..e1b186f19 100644 --- a/frontend/src/components/shared/FileList.vue +++ b/frontend/src/components/shared/FileList.vue @@ -212,7 +212,7 @@ const goToNewFile = () => { setRepoTab({ actionName: 'new_file', - lastPath: '' + lastPath: currentPath.value.length > 0 ? '/' + currentPath.value : '' }) } diff --git a/frontend/src/components/shared/NewFile.vue b/frontend/src/components/shared/NewFile.vue index 1290ac8f4..db92f52d0 100644 --- a/frontend/src/components/shared/NewFile.vue +++ b/frontend/src/components/shared/NewFile.vue @@ -1,7 +1,7 @@