skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
549 stars 194 forks source link

Paging on listing user under some role doen not work properly. #133

Open markogl opened 1 year ago

markogl commented 1 year ago

When click on pager on RoleUsers page you get error:

image

Pager does not include role guid into search

skoruba commented 1 year ago

You are right, thank you! can you send a PR?

snapcoyote commented 1 year ago

It seems the pager on the RoleUsers page requires a roleId parameter. As a ugly workaround fix, I updated the pager.cshtml to set a variable for roleId:

var roleId = Context.Request.Query["roleId"];

And then added an route attribute for roleId to all the paging links: asp-route-roleId="@roleId"