\r
// navigation links\r
List<PageRegistration> pages = new ArrayList<PageRegistration>();\r
- pages.add(new PageRegistration("gb.repositories", RepositoriesPage.class, getPageParameters()));\r
- pages.add(new PageRegistration("gb.activity", ActivityPage.class, getPageParameters()));\r
+ pages.add(new PageRegistration("gb.repositories", RepositoriesPage.class, getRootPageParameters()));\r
+ pages.add(new PageRegistration("gb.activity", ActivityPage.class, getRootPageParameters()));\r
if (showAdmin) {\r
pages.add(new PageRegistration("gb.users", UsersPage.class));\r
}\r
\r
super.setupPage(repositoryName, pageName);\r
}\r
+ \r
+ private PageParameters getRootPageParameters() {\r
+ PageParameters params = getPageParameters();\r
+ if (params != null) {\r
+ // remove named repository parameter\r
+ params.remove("r");\r
+ }\r
+ return params;\r
+ }\r
\r
private void loginUser(UserModel user) {\r
if (user != null) {\r