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

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