A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hi,
Will the ConvertToInternal() method also return UnifiedFiles? If it's a page internalObject can be casted to a PageReference.
object internalObject; if (Global.UrlRewriteProvider.ConvertToInternal(new EPiServer.UrlBuilder(url), out internalObject)) { UnifiedFile file = internalObject as UnifiedFile; if (file != null) { } }Or should I go with the HostingEnvironment.VirtualPathProvider.GetFile()?