Fixes double / in xhr-get-page-url