Fix token in Group screen
The wrong token leads to a wrong browser history. E.g., pressing "back-history" button on browser will loop on the group page after navigating to group page and clicking "General" and "Members" tabs. Bug: Issue 5298 Change-Id: I3c2f59e5ee35e343563a5174fa0d5456e33bdb88
This commit is contained in:
parent
2897e9d2e3
commit
25d59ce754
@ -717,11 +717,15 @@ public class Dispatcher {
|
||||
// shown in the web UI).
|
||||
//
|
||||
if (AccountGroup.isInternalGroup(group.getGroupUUID())) {
|
||||
Gerrit.display(toGroup(group.getGroupId(), AccountGroupScreen.MEMBERS),
|
||||
new AccountGroupMembersScreen(group, token));
|
||||
String newToken =
|
||||
toGroup(group.getGroupId(), AccountGroupScreen.MEMBERS);
|
||||
Gerrit.display(newToken,
|
||||
new AccountGroupMembersScreen(group, newToken));
|
||||
} else {
|
||||
Gerrit.display(toGroup(group.getGroupId(), AccountGroupScreen.INFO),
|
||||
new AccountGroupInfoScreen(group, token));
|
||||
String newToken =
|
||||
toGroup(group.getGroupId(), AccountGroupScreen.INFO);
|
||||
Gerrit.display(newToken,
|
||||
new AccountGroupInfoScreen(group, newToken));
|
||||
}
|
||||
} else if (AccountGroupScreen.INFO.equals(panel)) {
|
||||
Gerrit.display(token, new AccountGroupInfoScreen(group, token));
|
||||
|
Loading…
Reference in New Issue
Block a user