Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've got a v7.12.4 site and I'm trying to create a custom UrlProvider to handle the URLs of some specific nodes.
But the main problem I have is that as soon as I register a custom UrlProvider the Links in the Info tab of each node in the CMS disappear. So it's displaying no URLs there, but the pages themselves still work fine.
I've even gone back to a very basic UrlProvider with no custom logic in it at all:
public class SiteUrlProvider : DefaultUrlProvider
public SiteUrlProvider() : base(UmbracoConfig.For.UmbracoSettings().RequestHandler)
public SiteUrlProvider(IRequestHandlerSection requestSettings) : base(requestSettings)
Sot it's basically exactly the same as the default URL provider.
And then I register it in the ApplicationStarting event:
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
I can't see any errors in the logs, and apart from the blank Links in the CMS, the URLs work fine on the frontend.
Has anyone else encountered this before?
I haven't seen this but have you tried republishing the site?
Yes, I have tried republishing and restarting the site a few times.
I'm on v7.5.14 and have put the ContentFinders and UrlProviders into a separate class library.
My UrlProvider inherits from iUrlProvider and contains two methods, i.e. GetUrl(...) and GetOtherUrls(…) so I think I have a different implementation to you, and I may not be able to help.
I've created an issue for this on Github, since it's reproducible on a blank install as well: https://github.com/umbraco/Umbraco-CMS/issues/3842
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted