Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Site.SiteDefinition.MakeFullUrl Method

Turns a local Url into a fully qualified Url.

Class: YetaWF.Core.Site.SiteDefinition
Namespace: YetaWF.Core.Site
Assembly: YetaWF.Core

Syntax

public string MakeFullUrl(
    string? pathAndQs = null,
    PageSecurityType SecurityType = PageSecurityType.Any,
    string? RealDomain = null );

Parameters

pathAndQs

Local or remote Url. If nothing is specified, "/" is the default.

SecurityType

Desired page security.

RealDomain

Optional. Defines the domain name to be used to build the fully qualified Url. This can only be used if pathAndQs defines a local Url (starting with /). This can be used to build a Url for another domain name than the current domain name.

Return Value

A fully qualified Url.

Remarks

This method is used to format a fully qualified Url, including http(s)://, domain, port if necessary, and also takes into consideration whether the site is using IIS Express, in which case Localhost could be used.

RealDomain and ForceDomain are rarely used and usually only in YetaWF Core code as they are used to redirect to another site hosted by the same YetaWF instance. ForceDomain is used while creating a new site only and should not otherwise be used.

See Also YetaWF.Core.Site.SiteDefinition ClassYetaWF.Core Overview