The validator apps[].mappings[].entry_path.enforce_trailing_slashes
is disabled by default.
Enforce trailing slashes disabled (default validator)
The default validator forces that both paths either have a trailing slash or that both paths do not have a trailing slash.
Example with trailing slashes:
Entry path: /path/
Back-end path: /back-end/
- A request to
/path/target
matches and is forwarded to/back-end/target
. - A request to /path does not match:
- If no other mapping matches, this request will return Page Not Found.
Example without trailing slashes:
Entry path: /path
Back-end path: /back-end
- A request to
/path/target
matches and is forwarded to/back-end/target
. - A request to /path does match and is forwarded to
/back-end
.
Enforce trailing slashes enabled
Example with trailing slashes:
Entry path: /path/
Back-end path: /back-end/
- A request to
/path/target
matches and is forwarded to/back-end/target
.
Example with trailing slashes:
Entry path: /path
Back-end path: /back-end/
- The missing trailing slash of
/path
will lead to a validation error.
Further information and links
- See also DSL reference for validator information.