trailingSlashBehavior property

String? trailingSlashBehavior
getter/setter pair

Defines how to handle a trailing slash in the URL path. Possible string values are:

  • "TRAILING_SLASH_BEHAVIOR_UNSPECIFIED" : No behavior is specified. Files are served at their exact location only, and trailing slashes are only added to directory indexes.
  • "ADD" : Trailing slashes are added to directory indexes as well as to any URL path not ending in a file extension.
  • "REMOVE" : Trailing slashes are removed from directory indexes as well as from any URL path not ending in a file extension.

Implementation

core.String? trailingSlashBehavior;