Make a permanent link to a specific feature in Episerver Admin Mode?

Admin Mode has a lot of features, organized by a tab/list on the left side. When clicking on the Left Menu, a feature page is displayed on the right InfoFrame.

Sometime we want to click on a link then browser navigates to AdminMode, and, directly open the Set Access Rights (1st menu on the left frame) page.

We can pass on a query string parameter named customdefaultpage. The customdefaultpage works this way in Admin Mode.

string customDefaultPage = Request.QueryString["customdefaultpage"];
InfoFrame.SourceFile = UriSupport.ResolveUrlFromUIBySettings(customDefaultPage);

Examples

UriSupport.ResolveUrlFromUIBySettings("Admin") 

becomes

"/se/CMS/Admin"

— — —

UriSupport.AddQueryString(UriSupport.ResolveUrlFromUIBySettings("Admin/"), "customdefaultpage", "lockevn");

becomes

"/se/CMS/Admin/?customdefaultpage=lockevn"

— — —

http://lockevnthach/se/CMS/Admin/?customdefaultpage=/se/EPiServer.Samples/Views/Silver/Admin/Settings.aspx

will navigate the page to adminmode, display this on the right InfoFrame

/se/EPiServer.Samples/Views/Silver/Admin/Settings.aspx
Show your support

Clapping shows how much you appreciated lockevn’s story.