ensure that both prefix/postfix of / char in url will work