Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Get public url's from edit mode



I'm running out of ideas to how to get to public url from page being in edit mode.

In my case I'm using Alloy MVC example project and lets say in edit mode in some page and having it's url:

and I need to get it's published url to view (once published)


I'm able to get separatly host, port or linkURL like"/link/ea0b8a46cc7f4d149b6a9e760f970314.aspx?epslanguage=en" values and I wonder if this is possible to get ready url from EPI - I cannot dig it.

Thanks in advance

Mar 06, 2017 16:07

Hi Monika,

To get a friendly URL inside the edit mode, you can use the following code:

string friendlyUrl = UrlResolver.Current.GetUrl(
                        new VirtualPathArguments { ContextMode = ContextMode.Default });
Mar 06, 2017 17:53

... and if you want an absolute/external URL

Mar 06, 2017 20:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.