ignore slash inside url function