[PR #1154] [MERGED] Fix leave team 404 #15790

Closed
opened 2025-11-02 11:54:38 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1154
Author: @lunny
Created: 3/9/2017
Status: Merged
Merged: 3/9/2017
Merged by: @lunny

Base: masterHead: lunny/fix_leave_team


📝 Commits (1)

📊 Changes

2 files changed (+3 additions, -1 deletions)

View changed files

📝 routers/org/teams.go (+2 -0)
📝 templates/org/team/sidebar.tmpl (+1 -1)

📄 Description

When leave team, you will be redirect to the original team page. It's a wrong logic and you will receive a 404 page. You should be redirected to organization page since you are still a member of organization.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1154 **Author:** [@lunny](https://github.com/lunny) **Created:** 3/9/2017 **Status:** ✅ Merged **Merged:** 3/9/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/fix_leave_team` --- ### 📝 Commits (1) - [`39bb692`](https://github.com/go-gitea/gitea/commit/39bb692bf94664b4ceb6c80c8de4e0c9738da593) fix leave team 404 ### 📊 Changes **2 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `routers/org/teams.go` (+2 -0) 📝 `templates/org/team/sidebar.tmpl` (+1 -1) </details> ### 📄 Description When leave team, you will be redirect to the original team page. It's a wrong logic and you will receive a 404 page. You should be redirected to organization page since you are still a member of organization. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:54:38 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15790