CoreFiles by mySites.guru
admin-field-changecontext-es5.js12 lines, 373 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
94bfd9e4f5bf08fe947c8bc884555cbe
sha1
651eea4a7c8eadfae0defc070ac9e58e1b19cb49
sha256
6a55e1e571713a1f626a5af05a43bb58f01a99f5bbbad6a65c7943b4962a61ee
(function () {
  'use strict';

  Joomla.fieldsChangeContext = function (context) {
    var regex = /([?;&])context[^&;]*[;&]?/;
    var url = window.location.href;
    var 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 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.