Tidy up urls including required selection changes.