AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

DomainLanguageHelper..::..GetCurrentUrlRoot Method (HttpContext)

Gets the current URL root (host and optional virtual path) for the request.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string GetCurrentUrlRoot(
	HttpContext context
)

Parameters

context
Type: HttpContext
The HTTP context.

Return Value

The URL root string (e.g., "www.example.com" or "www.example.com/app").