Financial-Times / s3o-middleware

Middleware to handle authenticating with S3O
3 stars 9 forks source link

Incorrect redirect urls in middleware. #10

Closed AdaRoseCannon closed 8 years ago

AdaRoseCannon commented 8 years ago

When used in middleware it uses the relative path of the middleware rather than the originalUrl of the response. This is because in express req.url is only the path relative of the one that triggered the middleware.

See: http://expressjs.com/en/api.html#app.use