Keep a nice bookmarkable URL for direct access of project dashboards

Change-Id: I2f6fcc42044a41864f3cedeb305c471bbcecdb86
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-11-17 05:09:49 +01:00
parent 3a50e57890
commit 71594fae3e

View File

@@ -409,7 +409,10 @@ public class Dispatcher {
new GerritCallback<DashboardInfo>() {
@Override
public void onSuccess(DashboardInfo result) {
select(result.url());
if (matchPrefix("/dashboard/", result.url())) {
String rest = skip(result.url());
Gerrit.display(token, new CustomDashboardScreen(rest.substring(1)));
}
}
});
return;