From 29bf526a3df4dfd1eeaa0b627e180f904f9a3582 Mon Sep 17 00:00:00 2001 From: Nathan Wise Date: Fri, 23 Mar 2018 15:25:59 -0400 Subject: [PATCH] Initializing PageOffset to be 1 (instead of default 0) so that the 'next' pagination link is set properly when no 'page[number]' is passed in the query string. --- src/JsonApiDotNetCore/Internal/Query/PageQuery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JsonApiDotNetCore/Internal/Query/PageQuery.cs b/src/JsonApiDotNetCore/Internal/Query/PageQuery.cs index 8fe66d7d67..7c09d4c386 100644 --- a/src/JsonApiDotNetCore/Internal/Query/PageQuery.cs +++ b/src/JsonApiDotNetCore/Internal/Query/PageQuery.cs @@ -3,6 +3,6 @@ namespace JsonApiDotNetCore.Internal.Query public class PageQuery { public int PageSize { get; set; } - public int PageOffset { get; set; } + public int PageOffset { get; set; } = 1; } } \ No newline at end of file