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.
using the UrlResolver, you could set the context mode to "edit":
UrlResolver.Current.GetUrl(contentReference, language, new VirtualPathArguments() { ContextMode = ContextMode.Edit });
There's also
PageEditing.GetEditUrl(contentLink);
or
PageEditing.GetEditUrlForLanguage(contentLink, language);
How can I generate/get an url to a page in the CMS?
Like this: http://localhost:49196/episerver/cms/#viewsetting=viewlanguage:///no&context=epi.cms.contentdata:///2650
Do I have to hard code it or is there any methods to use for getting the url?