R32605 WebSites - Default Relative Url

Name Value
Code R32605
Entity Systems.Config.WebSites Entity
Name DefaultRelativeUrl
Attribute RelativeUrl
Layer Front-End
Events AttributeChanged(WebSiteType)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action If (RelativeUrl == null), then set a default value in RelativeUrl
Default value:
If (WebSiteType == ID), then RelativeUrl = 'id'
If (WebSiteType == API), then RelativeUrl = 'api'
If (WebSiteType == ClientCenter), then RelativeUrl = 'cc'
If (WebSiteType == ECommerce), then RelativeUrl = 'shop'
If (WebSiteType == SocialInteractions), then RelativeUrl = 'social'
If (WebSiteType == DigitalMarketplace), then RelativeUrl = 'marketplace'
If (WebSiteType == UserProfile), then RelativeUrl = 'profile'
If (WebSiteType == WebClientApplication), then RelativeUrl = 'cl'
If (WebSiteType == TableAPI), then RelativeUrl = 'tableapi'
If (WebSiteType == DataAccessAPI), then RelativeUrl = 'dataaccessapi'
else RelativeUrl = the WebSiteType, written in lower case and without any spaces
Description Loads a default Relative URL according to the selected Web Site Type.
Message -
Introduced In Version Introduced: 22
Updated: -
Revocable YES