-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Geta/bugfix/HTS-1404-pagination-not-working
HTS-1404: remove unnecessary ?page= from link
- Loading branch information
Showing
6 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
src/Geta.Optimizely.Tags/Areas/GetaOptimizelyTags/Pages/Models/Paging.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Geta.Optimizely.Tags.Pages.Geta.Optimizely.Tags.Models | ||
{ | ||
public class Paging | ||
{ | ||
public const int DefaultPageSize = 50; | ||
namespace Geta.Optimizely.Tags.Pages.Geta.Optimizely.Tags.Models; | ||
|
||
[FromQuery(Name = "page")] | ||
public int PageNumber { get; set; } = 1; | ||
public class Paging | ||
{ | ||
[FromQuery(Name = "page")] | ||
public int PageNumber { get; set; } = 1; | ||
|
||
[FromQuery(Name = "page-size")] | ||
public int PageSize { get; set; } = DefaultPageSize; | ||
} | ||
public static int PageSize { get => 50; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters