Correctly handle moving to absolute URI without trailing slash, closes #1055