Can someone please help me understand why this.path is set to undefined?
I had checked the router Layer, and the path was undefined in almost every route, that shouldn't be the case, right?
While I don't know the reason of it being set to undefined initially, I can suggest it should be set to path. I have noticed that the path on Layer is no longer undefined if we set,
Instead, it gets correct path such as /users or whatever the path actually is.
Can someone please help me understand why
this.pathis set toundefined?router/lib/layer.js
Line 43 in 2e7fb67
I had checked the router Layer, and the path was
undefinedin almost every route, that shouldn't be the case, right?While I don't know the reason of it being set to
undefinedinitially, I can suggest it should be set topath. I have noticed that thepathon Layer is no longer undefined if we set,Instead, it gets correct path such as
/usersor whatever the path actually is.