Turns a local Url into a fully qualified Url.
Class: YetaWF.Core.Site.SiteDefinition
Namespace: YetaWF.Core.Site
Assembly: YetaWF.Core
public string MakeFullUrl( string? pathAndQs = null, PageSecurityType SecurityType = PageSecurityType.Any, string? RealDomain = null );
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.
A fully qualified Url.
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
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com