Skip to content

Commit

Permalink
Fix for bottom paging next/previous buttons from losing usersearch qu…
Browse files Browse the repository at this point in the history
…erystring
  • Loading branch information
MrKevJoy committed Nov 6, 2023
1 parent 0b1fce5 commit a6fe28c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@
<govuk-pagination>
@if (Model.PreviousPage.HasValue)
{
<govuk-pagination-previous asp-page="Users" asp-all-route-data=@Model.GetPage((int)Model.PreviousPage!)/>
<govuk-pagination-previous asp-page="Users" asp-all-route-data=@Model.GetPage((int)Model.PreviousPage!) asp-route-usersearch="@Model.UserSearch" />
}

@if (Model.NextPage.HasValue)
{
<govuk-pagination-next asp-page="Users" asp-all-route-data=@Model.GetPage((int)Model.NextPage!)/>
<govuk-pagination-next asp-page="Users" asp-all-route-data=@Model.GetPage((int)Model.NextPage!) asp-route-usersearch="@Model.UserSearch" />
}
</govuk-pagination>
}
Expand Down

0 comments on commit a6fe28c

Please sign in to comment.