fix handle_slash so it puts the slash at the end of the url, before the query params