Deleting a User should redirect to /admin/users on success #1349

Closed
opened 2025-11-02 03:57:27 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @lukewatts on GitHub (Dec 12, 2017).

  • Gitea version (or commit ref): 1.3.0
  • Git version: 2.13
  • Operating system: Win10
  • Database (use [x]):
    • PostgreSQL
    • [x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [x ] Not relevant
  • Log gist:

Description

When deleting a user in the following workflow Admin Panel > Users tab > Edit > Delete User the screen comes up asking to confirm the action. Then the overlay screen says it has successfully deleted the user. However the screen page remains on /admin/users/:id when the overlay fades out.

I feel it would be much better if an automatic redirect happened instead bringing you back to view all users at this point and display a flash message

Originally created by @lukewatts on GitHub (Dec 12, 2017). - Gitea version (or commit ref): 1.3.0 - Git version: 2.13 - Operating system: Win10 - Database (use `[x]`): - [ ] PostgreSQL - [x ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x ] Not relevant - Log gist: ## Description When deleting a user in the following workflow `Admin Panel > Users tab > Edit > Delete User` the screen comes up asking to confirm the action. Then the overlay screen says it has successfully deleted the user. However the screen page remains on /admin/users/:id when the overlay fades out. I feel it would be much better if an automatic redirect happened instead bringing you back to view all users at this point and display a flash message
GiteaMirror added the issue/staleissue/needs-feedback labels 2025-11-02 03:57:27 -06:00
Author
Owner

@lunny commented on GitHub (Dec 12, 2017):

We tested it on Chrome macOS. It redirected to /admin/users/ after I deleted a user. Which browser are you using and any error on console?

@lunny commented on GitHub (Dec 12, 2017): We tested it on Chrome macOS. It redirected to `/admin/users/` after I deleted a user. Which browser are you using and any error on console?
Author
Owner

@lukewatts commented on GitHub (Dec 12, 2017):

I'm using chrome. Didn't notice any errors either.

Get Outlook for Android

On Tue, Dec 12, 2017 at 2:59 PM +0000, "Lunny Xiao" notifications@github.com wrote:

We tested it on Chrome macOS. It redirected to /admin/users/ after I deleted a user. Which browser are you using and any error on console?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@lukewatts commented on GitHub (Dec 12, 2017): I'm using chrome. Didn't notice any errors either. Get Outlook for Android On Tue, Dec 12, 2017 at 2:59 PM +0000, "Lunny Xiao" <notifications@github.com> wrote: We tested it on Chrome macOS. It redirected to /admin/users/ after I deleted a user. Which browser are you using and any error on console? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Author
Owner

@lafriks commented on GitHub (Dec 12, 2017):

I can not seem to reproduce this, seems to be working just fine for me

@lafriks commented on GitHub (Dec 12, 2017): I can not seem to reproduce this, seems to be working just fine for me
Author
Owner

@stale[bot] commented on GitHub (Feb 10, 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 (Feb 10, 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1349