R30887 WebSite - Valid Relative Url

Code R30887
Entity Systems.Config.WebSites Entity
Name ValidRelativeUrl
Attribute RelativeUrl
Layer Back-End
Events Commit
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action Validate that:

If (RelativeUrl !=NULL)

, then REGEX(RelativeUrl, ^(?!sys$)[a-z0-9-_]*$ ) = True
Description

The current rule makes sure that the Relative Url of the Website is valid.

The Relative Url have to meet the following conditions:

  • is not "sys" - "sys" has a special use and is reserved by the system;
  • contains only allowed characters. The allowed characters are digits (0-9), lower-case letters (a-z), '-' and '
Message The field 'Relative Url' contains an invalid value '{Relative Url}'.

Please make sure that the value is not 'sys' and contains only allowed characters. The allowed characters are digits (0-9), lower-case letters (a-z), '-' and '_'.
Version Introduced: 2020.1

Updated: -
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.