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.
AI OnAI Off
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.
Something like this?
foreach (var child in children)
{
var pageUrl = UrlResolver.Current.GetUrl(child);
}
If UrlResolver.Current is unavailable in EPiServer 7, then you could use something like this:
var pageUrl = ServiceLocator.Current.GetInstance<UrlResolver>().GetVirtualPath(pageLink);
Hi,
through below code i m able to get all the pages which are located under the root page.
but i want to find the URL of all the pages.
i m not able to figure out how to get the URL.
could you please help me on this.
PageDataCollection children = EPiServer.DataFactory.Instance.GetChildren(PageReference.RootPage);