fixing the "/" problem in url parts