minor: use no_upwards instead of grep
merge several slashes in URL path