untangle url methods
add type hint
Merge pull request #3206 from dereuromark/3.0-pagination

untangle url methods