remove duplicated path in URLs