NIHVIVO-1394 Provide a currentPage variable to the page template.

This commit is contained in:
rjy7 2010-12-06 21:40:23 +00:00
parent 7149091c75
commit f9a02c5218

View file

@ -416,6 +416,9 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
map.put("flash", flashMessage); map.put("flash", flashMessage);
} }
// Let the page template know which page it's processing.
map.put("currentPage", vreq.getServletPath().replaceFirst("/", ""));
return map; return map;
} }