diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java index 0fe3ee3e8..87d0f0ca3 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java @@ -144,7 +144,7 @@ public class RepositorySearchController extends AbstractRepositoryRestController nextLink = searchLink(repoRequest, 1, method, "page.next"); } } - return resultToResourceSupport(repoRequest, result, new ArrayList(), prevLink, nextLink); + return resultToResources(repoRequest, result, new ArrayList(), prevLink, nextLink); } @RequestMapping(