Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
-
Empty show more show less
-
Kromeriz 22
-
3
Description
When pager is only one (or first) argument in request it works fine, when it has other arguments in front of it, it duplicates "currentPage"
Problem starts in AbstractSearchResultModel.java when you get:
currentPageLink = MgnlContext.getAggregationState().getOriginalURL();
getOriginalURL() returns escaped string so & is returned as
&
there is a getOriginalBrowserURL() which returns unescaped string
and then in SolrPager.java, in public String getPageLink(int i)
you split parameters by :
String[] params = query.split("&");
which creates parameters like:
amp;currentPage=2 and you check if string startsWith("currentPage=")
can you please fix that?
Checklists
Acceptance criteria