Use req.originalUrl instead of req.url.