Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix variable resolution in HtmlTemplateMiddleware (#4975)

Kenrick Tandrian14b213c57192
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 93ec69abd6..1999c836ec 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 bf14ebb90b..41f156cbf2 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}`;
})
]
});