Update tb-html-fallback-middleware.ts
This commit is contained in:
parent
d2e949e9eb
commit
000c38f03c
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user