fix: #11775, trim -rtl from targetSkin

This commit is contained in:
Barış Soner Uşaklı
2023-07-03 18:50:09 -04:00
parent 64d3018286
commit 0183e5f8d2

View File

@@ -229,7 +229,7 @@ middleware.delayLoading = function delayLoading(req, res, next) {
middleware.buildSkinAsset = helpers.try(async (req, res, next) => {
// If this middleware is reached, a skin was requested, so it is built on-demand
const targetSkin = path.basename(req.originalUrl).split('.css')[0];
const targetSkin = path.basename(req.originalUrl).split('.css')[0].replace(/-rtl$/, '');
if (!targetSkin) {
return next();
}