Deleting a file resets the folder position #2786

Open
opened 2025-11-02 04:48:26 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @gerroon on GitHub (Jan 21, 2019).

It seems like after deleting a file in the ui, Gitea sends the user back to the root of the repository instead of the folder where ther file is. Given that the deleted file is in a folder and the user gets to the file via that folder, it would make sense that Gitea will go back to the file's folder instead of the repository's root.

This is an issue if the deleted file is deep in somewhere and the user needs to delete multiple files, it takes a while to achieve this vbia the ui since the user needs to restart the folder travel.

Debian Buster,Gitea Version: 1.7.0-rc3

thanks

Originally created by @gerroon on GitHub (Jan 21, 2019). It seems like after deleting a file in the ui, Gitea sends the user back to the root of the repository instead of the folder where ther file is. Given that the deleted file is in a folder and the user gets to the file via that folder, it would make sense that Gitea will go back to the file's folder instead of the repository's root. This is an issue if the deleted file is deep in somewhere and the user needs to delete multiple files, it takes a while to achieve this vbia the ui since the user needs to restart the folder travel. Debian Buster,Gitea Version: 1.7.0-rc3 thanks
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 04:48:26 -06:00
Author
Owner

@stale[bot] commented on GitHub (Mar 22, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Mar 22, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@zeripath commented on GitHub (Mar 24, 2019):

Hmm, An empty directory doesn't exist in git.

So if you delete the last file in a directory where do you redirect to?

@zeripath commented on GitHub (Mar 24, 2019): Hmm, An empty directory doesn't exist in git. So if you delete the last file in a directory where do you redirect to?
Author
Owner

@gerroon commented on GitHub (Mar 24, 2019):

one up instead of the root of the repo? Also this is not necessarily about the last file.

@gerroon commented on GitHub (Mar 24, 2019): one up instead of the root of the repo? Also this is not necessarily about the last file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2786