Routes that take a page and page_size argument return a Link header with links to other pages or even the current page. However, it does not take into account any other query string arguments such as v or lang.
GET /v2/colors?page=1&lang=de&v=latest HTTP/1.1
User-Agent: HTTP-REPL
This completely breaks Link for routes that have a required query string argument. The one that comes to mind is /v2/recipes/search which has a required input or output argument and an optional page and page_size, but only the latter are present in the Link header.
GET /v2/recipes/search?input=46746&page=0 HTTP/1.1
User-Agent: HTTP-REPL
Current Behavior
Routes that take a
page
andpage_size
argument return a Link header with links to other pages or even the current page. However, it does not take into account any other query string arguments such asv
orlang
.Expected Behavior
Query arguments from the request should be echoed in the Link response header.
Steps To Reproduce
No response
Happening since
No response
Anything else?
This completely breaks Link for routes that have a required query string argument. The one that comes to mind is
/v2/recipes/search
which has a requiredinput
oroutput
argument and an optionalpage
andpage_size
, but only the latter are present in the Link header.