Skip to content

Commit

Permalink
Marking embedded pages through the request parameter "_embedded".
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Nov 8, 2016
1 parent 8c8e5cb commit 44a126b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapidoid-gui/src/main/java/org/rapidoid/gui/HtmlPage.java
Expand Up @@ -123,7 +123,7 @@ private Map<String, Object> pageModel() {
model.put("menu", pageMenu);

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

model.put("search", search());
model.put("navbar", navbar());
Expand Down

0 comments on commit 44a126b

Please sign in to comment.