[5.0] Added A "setPath" Method To The Paginator

Fixes #6397.