Skip to content

Commit

Permalink
chore: fix self link with pagination encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
toedter committed Sep 21, 2023
1 parent e968e72 commit f1f8350
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ public ResponseEntity<RepresentationModel<?>> findAll(
afford(methodOn(MovieController.class).newMovie(null));

Link selfLink = linkTo(MovieController.class).slash("movies" + uriParams
+ "&page%5Bnumber%5D=" + pagedResult.getNumber()
+ "&page%5Bsize%5D=" + pagedResult.getSize()).withSelfRel().andAffordance(newMovieAffordance);
+ "&page[number]=" + pagedResult.getNumber()
+ "&page[size]=" + pagedResult.getSize()).withSelfRel().andAffordance(newMovieAffordance);
// end::affordance[]

PagedModel.PageMetadata pageMetadata =
Expand Down

0 comments on commit f1f8350

Please sign in to comment.