Browse Source
Update tb-html-fallback-middleware.ts
pull/12393/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/esbuild/tb-html-fallback-middleware.ts
|
|
|
@ -23,7 +23,7 @@ const tbHtmlFallbackMiddleware: NextHandleFunction = ( |
|
|
|
_res: ServerResponse, |
|
|
|
next: Connect.NextFunction |
|
|
|
) => { |
|
|
|
if (/^\/resources\/scada-symbols\/(?:system|tenant)\/[^/]+\.svg$/.test(req.url)) { |
|
|
|
if (/^\/resources\/scada-symbols\/(?:system|tenant)\/[^/]+$/.test(req.url)) { |
|
|
|
req.url = '/'; |
|
|
|
} |
|
|
|
next(); |
|
|
|
|