On a project I'm working on, the current cude for Url() in KnockoutContext wasn't getting route data. Since KnockoutContext has a ViewContext, we can get the RequestContext
from that to make a UrlHelper, instead of jumping through hoops. This is both cleaner, and works correctly.
On a project I'm working on, the current cude for Url() in KnockoutContext wasn't getting route data. Since KnockoutContext has a ViewContext, we can get the RequestContext from that to make a UrlHelper, instead of jumping through hoops. This is both cleaner, and works correctly.