Update tb-html-fallback-middleware.ts

This commit is contained in:
Igor Kulikov 2025-01-10 19:07:03 +02:00 committed by GitHub
parent d2e949e9eb
commit 000c38f03c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ const tbHtmlFallbackMiddleware: NextHandleFunction = (
_res: ServerResponse, _res: ServerResponse,
next: Connect.NextFunction next: Connect.NextFunction
) => { ) => {
if (/^\/resources\/scada-symbols\/(?:system|tenant)\/[^/]+\.svg$/.test(req.url)) { if (/^\/resources\/scada-symbols\/(?:system|tenant)\/[^/]+$/.test(req.url)) {
req.url = '/'; req.url = '/';
} }
next(); next();