diff --git a/projects/Infrastructure/Infrastructure.csproj b/projects/Infrastructure/Infrastructure.csproj index b86eb0b3..ccfc2b87 100644 --- a/projects/Infrastructure/Infrastructure.csproj +++ b/projects/Infrastructure/Infrastructure.csproj @@ -5,7 +5,7 @@ true true true - 1.0.0-beta.422 + 1.0.0.427 diff --git a/projects/Infrastructure/Views/Shared/_Paged.cshtml b/projects/Infrastructure/Views/Shared/_Paged.cshtml index f694bb74..23e7d03a 100644 --- a/projects/Infrastructure/Views/Shared/_Paged.cshtml +++ b/projects/Infrastructure/Views/Shared/_Paged.cshtml @@ -1,9 +1,10 @@ @model Infrastructure.Application.IPagedList @{ var links = Model.GetPageIndexs(); - var url = this.Context.Request.GetUrl(); + var url = Url.Content("~") + this.Context.Request.Path + this.Context.Request.QueryString; var pageIndexParam = "PageIndex"; var firstUrl = url.RemoveParam("PageIndex"); + var prevUrl = Model.PageIndex - 1 == 1 ? firstUrl : url.SetParam(pageIndexParam, Model.PageIndex - 1);