Redirection fixed (#999)
This commit is contained in:
parent
2b0863bda9
commit
0ee602102e
|
@ -57,6 +57,7 @@ const Resource = {
|
|||
'VERSION_EXPRESSION': /(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?|latest/,
|
||||
'SINGLE_NUMBER_EXPRESSION': /^\D+@?\d.*$/,
|
||||
'MATHJAX': /\/\w.*(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?\/|\/(mathjax\/)?latest\//,
|
||||
'TINYMCE': /\/\w.*(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?\//,
|
||||
'VERSION_PLACEHOLDER': '{version}'
|
||||
};
|
||||
|
||||
|
|
|
@ -256,6 +256,9 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
|
|||
};
|
||||
}
|
||||
}
|
||||
if (bundle === 'TinyMCE (Bundle)' && filename !== 'tinymce.min.js') {
|
||||
filename = channelPath.replace(Resource.TINYMCE, '');
|
||||
}
|
||||
return helpers.formatFilename(filename.endsWith('.js')
|
||||
? `${targetPath + filename}m`
|
||||
: targetPath + filename);
|
||||
|
|
Loading…
Reference in New Issue