Created middleware which ensures trailing slash and multi-segment features work properly together

This commit is contained in:
Alejandro Celaya
2022-09-30 17:19:07 +02:00
parent c6c4e5580b
commit 3dda49dab4
7 changed files with 133 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ return (static function (): array {
'auto_resolve_titles' => (bool) EnvVars::AUTO_RESOLVE_TITLES->loadFromEnv(false),
'append_extra_path' => (bool) EnvVars::REDIRECT_APPEND_EXTRA_PATH->loadFromEnv(false),
'multi_segment_slugs_enabled' => (bool) EnvVars::MULTI_SEGMENT_SLUGS_ENABLED->loadFromEnv(false),
'trailing_slash_enabled' => (bool) EnvVars::SHORT_URL_TRAILING_SLASH->loadFromEnv(false),
],
];