hopefully fix weird doubling of url parts