Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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?