req.baseUrl solves problem with trailing slashes