Legend,
I had something similar, extending the RequestContext and returning:
VirtualPathData vpd = req.RouteData.Route.GetVirtualPath(req, values);
return (vpd == null) ? null : vpd.VirtualPath;
Much like the original BuildUrlFromExpression method, but for some reason it was returning null and I've been looking for a solution since. Thanks!
↧