Skip to content

Commit 2064310

Browse files
committed
Render the "show" view by default for RestfulController. Fixes #9862
1 parent 2d492fa commit 2064310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-plugin-rest/src/main/groovy/grails/rest/RestfulController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class RestfulController<T> {
111111
response.addHeader(HttpHeaders.LOCATION,
112112
grailsLinkGenerator.link( resource: this.controllerName, action: 'show',id: instance.id, absolute: true,
113113
namespace: hasProperty('namespace') ? this.namespace : null ))
114-
respond instance, [status: CREATED]
114+
respond instance, [status: CREATED, view:'show']
115115
}
116116
}
117117
}

0 commit comments

Comments
 (0)