Remove unnecessary parts of url