AndreyAkinshin / knockout-mvc

Power of Knockout.js for ASP.NET MVC
http://knockoutmvc.com
203 stars 125 forks source link

Change how URLs are generated. #21

Closed msieker closed 11 years ago

msieker commented 11 years ago

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.