`url.parse` is deprecated and introduces warnings, but replace it with `url.URL` causes routing issue