page in link is getting truncated

Bugfix

Member
Hello!
I have an addon where I have an own tab in profile:
http://domain.com/members/admin.1/#mytab
Everything works fine (view, ...) but now I wanted to add paging via xen: pagenav.
One curious thing now is happening:
Everytime I add &page=2 to my url, it is deleted.

For example:
http://domain.com/members/admin.1/?page=2#mytab
-> i get: http://domain.com/members/admin.1/#mytab

http://domain.com/members/admin.1/?jump=1&page=2#mytab
-> i get: http://domain.com/members/admin.1/?jump=1#mytab

http://domain.com/members/admin.1/?page=2&page2=3#mytab
-> i get: http://domain.com/members/admin.1/?page2=3#mytab

Why is this?
Where do I have to look for the error?
 
ok, i found the problem...
-> XenForo_ControllerPublic_Abstract ->
public function canonicalizePageNumber($page, $perPage, $total, $linkType, $linkData = null)

* Ensures that the page that has been requested is valid based on the total
* number of results. If it's not valid, the page is redirected to the last
* valid page (via a response exception).

I have only 1 page on the default member-page... (in my addon tab I have multiple pages).
Nevertheless, the param page is being unset...
 
Back
Top Bottom