Skip to content

Commit 29bf526

Browse files
committed
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.
1 parent 4982d9b commit 29bf526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Internal/Query/PageQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ namespace JsonApiDotNetCore.Internal.Query
33
public class PageQuery
44
{
55
public int PageSize { get; set; }
6-
public int PageOffset { get; set; }
6+
public int PageOffset { get; set; } = 1;
77
}
88
}

0 commit comments

Comments
 (0)