Skip to content

Commit 1d24925

Browse files
committed
Return correct URI for controllers in namespaces. Fixes #9982
1 parent 0532f0c commit 1d24925

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

grails-web-url-mappings/src/main/groovy/org/grails/web/mapping/mvc/UrlMappingsInfoHandlerAdapter.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ class UrlMappingsInfoHandlerAdapter implements HandlerAdapter, ApplicationContex
117117
} else if(result == null &&
118118
webRequest.renderView) {
119119
def viewUri = "/${controllerClass.logicalPropertyName}/${action}"
120+
if(controllerClass.namespace != null) {
121+
viewUri = "/${controllerClass.namespace}${viewUri}"
122+
}
120123
return new ModelAndView(viewUri)
121124
}
122125
}

0 commit comments

Comments
 (0)