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
{{ message }}
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.
Unfortunately, path in this context is a method. The app.locals.enrouten property is an object and the path method refers to this internally. As such if you just copy the function it will lose the context it needs to correctly resolve.
okay, i have clone the enrouten.path function and change the this context to the real one. Its not realy nice to do so, but for now its doing that what i need.
Thanks for the follow up @Dexus. This functionality was namespaced under "enrouten" to prevent naming collisions on app or res locals. Just naming the property "url" would be too generic and sure to cause naming conflicts, so it's unlikely we will go that route. If your age other thoughts on how to simplify the location of this functionality, feel free to go ahead and file an issue with that proposal. Thanks, again.
Hey,
is there a way to create a shortcut for locals.enrouten.path as locals.url?
i try to set app.locals.url = app.locals.enrouten.path, but thats not working for me.
The text was updated successfully, but these errors were encountered: