Skip to content

Commit

Permalink
Fixed the active page menu item selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed May 4, 2016
1 parent e3b6bca commit 8081fa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rapidoid-gui/src/main/java/org/rapidoid/gui/HtmlPage.java
Expand Up @@ -109,7 +109,10 @@ private Map<String, Object> pageModel() {
model.put("home", home());
model.put("brand", brand());
model.put("title", title());
model.put("menu", PageMenu.from(menu()));

PageMenu pageMenu = PageMenu.from(menu());
pageMenu.uri(req.path());
model.put("menu", pageMenu);

model.put("version", RapidoidInfo.version());
model.put("embedded", embedded() || req.attrs().get("_embedded") != null);
Expand Down

0 comments on commit 8081fa1

Please sign in to comment.