HttpContextExtensions Class
Namespace: Nucleus.ViewFeatures
Assembly: Nucleus.ViewFeatures.dll
Extension methods for HttpContext.
Methods
GetTheme
(HttpContext) Method
GetTheme (HttpContext context)
Return the user's selected control panel theme setting.
IsTopDockSelected
(HttpContext) Method
IsTopDockSelected (HttpContext context)
Return the user's selected control panel sidebar docking setting.
NucleusRedirect
(HttpContext, String) Method
NucleusRedirect (HttpContext context, String location)
Return a custom "Nucleus redirect" response. We use the X-Location header rather than location because browsers automatically follow regular redirects, and when we do a POST using jQuery.ajax we want to handle these as a full page redirect, rather than what the browser would do, which is replace the AJAX response with the contents of the redirect location url. Nucleus redirects are handled in nucleus-shared.js.