Made urls tolerant of presence or absence of final '/'.