fix bug in base url slash dedupping