芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.2/com_fields/js/admin-field-changecontext.js
Joomla.fieldsChangeContext = context => { const regex = new RegExp('([?;&])context[^&;]*[;&]?'); const url = window.location.href; const query = url.replace(regex, '$1').replace(/&$/, ''); // eslint-disable-next-line window.location.href = (query.length > 2 ? query + '&' : '?') + (context ? 'context=' + context : ''); };