I'm using spring-data-common's PagedResourcesAssembler in my REST controller, and I was happy to see it even generates next/previous links in the response. However, in those cases where I have additional query parameters (besides page, size, sort), these are not included in the generated links. Can I somehow configure the assembler to include the parameters in the links?
Many thanks, Daniel
You need to build base link by yourself and pass it to "toResource" method of PagedResourcesAssembler.
As a result you will get: