You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Thu, Jun 20, 2019, 4:14 PM Julio Vedovatto ***@***.***> wrote:
I faced an issue while working with this awesome micro framework.
Some third-party middlewares relies on req.originalUrl to work. Example:
https://www.npmjs.com/package/session-middleware
I had to add an extra middlware to solve this problem.
service.use((req,res, next) => {
if (!req.originalUrl)
req.originalUrl = req.url
next()
})
It worked for my case, but it would be good to have this property in the
req object as well.
I checked express and sails and both have this property in req object.
Do you think it is possible to have it available?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7IGXCG4SJWFKS2FMWTPADP3OGD5ANCNFSM4HZTPKCA>
.
I faced an issue while working with this awesome micro framework.
Some third-party middlewares relies on
req.originalUrl
to work. Example: https://www.npmjs.com/package/session-middlewareI had to add an extra middlware to solve this problem.
It worked for my case, but it would be good to have this property in the
req
object as well.I checked
express
andsails
and both have this property inreq
object.Do you think it is possible to have it available?
The text was updated successfully, but these errors were encountered: