Remove parts of url which aren't needed