The direct link generation generates "http://localhost/prefix/", while Url.Link generates "http://localhost/prefix" when the OData path is empty. There's a slight inconsistency here that we should fix.
Comments: Fixed: https://aspnetwebstack.codeplex.com/SourceControl/changeset/694c07e1196d0c20731bb551f11977c8618cdf18
Comments: Fixed: https://aspnetwebstack.codeplex.com/SourceControl/changeset/694c07e1196d0c20731bb551f11977c8618cdf18