diff --git a/CHANGELOG.md b/CHANGELOG.md index 93ec69abd..1999c836e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the language localization for French (`fr`) - Upgraded `class-validator` from version `0.14.1` to `0.14.2` +### Fixed + +- Fixed an issue in the `HtmlTemplateMiddleware` related to incorrect variable resolution + ## 2.172.0 - 2025-06-19 ### Added diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index bf14ebb90..41f156cbf 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -48,7 +48,8 @@ async function bootstrap() { exclude: [ 'sitemap.xml', ...SUPPORTED_LANGUAGE_CODES.map((languageCode) => { - return `/${languageCode}/*wildcard`; + // Exclude language-specific routes with an optional wildcard + return `/${languageCode}{/*wildcard}`; }) ] });