Make the url works for all input except the problem of '//'