Fix url not recognized when finishing with "/"