Skip to content

Commit

Permalink
GRAILS-8142 - the render method should respect the plugin attribute
Browse files Browse the repository at this point in the history
Relevant functional tests: grails/grails-functional-tests@69788d3
  • Loading branch information
Jeff Scott Brown committed Mar 12, 2014
1 parent e57f91d commit 4c6c149
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ private void renderTemplateForBean(Template template, Map binding, Object bean,
private void renderView(GrailsWebRequest webRequest, Map argMap, Object target, GroovyObject controller) {
String viewName = argMap.get(ARGUMENT_VIEW).toString();
String viewUri = webRequest.getAttributes().getNoSuffixViewURI((GroovyObject) target, viewName);
String contextPath = getContextPath(webRequest, argMap);
if(contextPath != null) {
viewUri = contextPath + viewUri;
}
Object modelObject = argMap.get(ARGUMENT_MODEL);
if (modelObject != null) {
modelObject = argMap.get(ARGUMENT_MODEL);
Expand Down

0 comments on commit 4c6c149

Please sign in to comment.