Sitecore / autohaus

An open source demo site for Sitecore 7
47 stars 18 forks source link

OData services nextLink not correct when using $skip, $top or $orderby #10

Open dstomphorst opened 10 years ago

dstomphorst commented 10 years ago

The OData service generates an invalid odata.nextLink.

When calling for example: http://autohaus/odata/Cars?$inlinecount=allpages&$filter=BodyType%20eq%20'convertible'&$skip=40

The next link is: http://autohaus/odata/Cars?$inlinecount=allpages&$filter=BodyType%20eq%20'convertible'&$skip=20

The $skip parameter is incorrect.

This is probably because $skip, $top and $orderby are removed by the BuildCustomRequest method and therefore not used when rendering the nextLink.