We have moved to GitHub Issues
You are viewing the read-only archive of Umbraco's issue tracker. To create new issues, please head over to GitHub Issues.
Make sure to read the blog posts announcing the move for more information.
Created by Stephan 02 Aug 2013, 08:56:26 Updated by Stephan 10 Oct 2014, 09:36:08
Relates to: U4-4879
Relates to: U4-5627
At the moment UmbracoContext.UrlProvider is internal so it can't be accessed by user code. In views, controllers, etc. there's the UmbracoHelper which gives access to the NiceUrl() methods, but outside of these one needs to create an UmbracoHelper just to get the url of a node. Would be easier to do UmbracoContext.Current.UrlProvider.GetUrl(id).
Or would this clutter the UmbracoContext? Or maybe it's simpler to tell people to just instanciate an UmbracoHelper, so the same syntax is used everywhere?
In addition:
@zpqrtbnk what is the status of this? I'm assigning to 7.2 since I'm assuming this is pretty straightforward?
Should have been done long ago. Taking care of it.
Done
Priority: Normal
Type: Feature (request)
State: Fixed
Assignee: Stephan
Difficulty: Normal
Category: Architecture
Backwards Compatible: True
Fix Submitted:
Affected versions:
Due in version: 7.2.0
Sprint:
Story Points:
Cycle: