first commit

This commit is contained in:
2025-06-17 11:53:18 +02:00
commit 9f0f7ba12b
8804 changed files with 1369176 additions and 0 deletions

View File

@ -0,0 +1,8 @@
Joomla.fieldsChangeContext = context => {
const regex = /([?;&])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 : '');
};