CoreFiles by mySites.guru
admin-field-changecontext.js8 lines, 322 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
06cc05a19e608649ddaa6f789751e1e3
sha1
6e645e05a370873f9ad14a15b38c1490d0bd8bae
sha256
712d2c9f49d5e665f700f00ca014ec4b9db9654614a5e9dece7af5b3dfab9d61
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 : '');
};

The same content is in 79 releases, Joomla 4.3.0-alpha1 to 5.1.0-beta1. See them all, or every version of this file.