[fix] Properly remove trailing '/' in URL