Revert to urls without slash when not needed