File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
grails-web-url-mappings/src/main/groovy/org/grails/web/mapping/mvc Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import grails.web.mime.MimeTypeResolver
2525import grails.web.http.HttpHeaders
2626import org.grails.exceptions.ExceptionUtils
2727import org.grails.web.servlet.mvc.GrailsWebRequest
28+ import org.grails.web.util.GrailsApplicationAttributes
2829import org.grails.web.util.WebUtils
2930import org.springframework.beans.factory.annotation.Autowired
3031import org.springframework.util.Assert
@@ -162,6 +163,7 @@ class UrlMappingsHandlerMapping extends AbstractHandlerMapping {
162163 info. configure(webRequest)
163164 if (info instanceof GrailsControllerUrlMappingInfo ) {
164165 request. setAttribute(MATCHED_REQUEST , info)
166+ request. setAttribute(GrailsApplicationAttributes . GRAILS_CONTROLLER_CLASS , ((GrailsControllerUrlMappingInfo )info). controllerClass)
165167 return info
166168 }
167169 else if (info. viewName || info.URI ) {
You can’t perform that action at this time.
0 commit comments