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
would the expectation here be (a) you get that original array back (b) you get just the element in the array that matched the request url or (c) something else?
The feature request to too vague on what the goal is for the usage of this data is to gauge, if you can expand on what specific you're going to use it for as well. For example, what should it provide when there are routers mounted in routers?
Thanks for reply.
I wasn't aware you can use router API like that. That being said, I would expect req.originalUnparsedPath to work same way as req.originalUrl do, but just return the unparsed value.
Activity
dougwilson commentedon Nov 4, 2019
Hi! Thanks for the feature request. Can you provide more information around what you expect to use this for? For example, if the route is defined as
would the expectation here be (a) you get that original array back (b) you get just the element in the array that matched the request url or (c) something else?
The feature request to too vague on what the goal is for the usage of this data is to gauge, if you can expand on what specific you're going to use it for as well. For example, what should it provide when there are routers mounted in routers?
GuskiS commentedon Nov 4, 2019
Thanks for reply.
I wasn't aware you can use router API like that. That being said, I would expect
req.originalUnparsedPathto work same way asreq.originalUrldo, but just return the unparsed value.I need to log it out and then create AWS metrics.
wesleytodd commentedon Nov 4, 2019
Does this PR satisfy this? #34
GuskiS commentedon Nov 4, 2019
I suppose that would work, yes.
feat: store matched routes in request
feat: store matched routes in request
feat: store matched routes in request
donoftime2018 commentedon Nov 6, 2023
I cannot access originalUnparsedPath. I have express 4.18.2