Files
conservatorio-tomadini/media/com_fields/js/admin-field-changecontext.min.js
2024-12-17 17:34:10 +01:00

5 lines
349 B
JavaScript

/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/Joomla.fieldsChangeContext=e=>{const n=/([?;&])context[^&;]*[;&]?/,o=window.location.href.replace(n,"$1").replace(/&$/,"");window.location.href=(o.length>2?o+"&":"?")+(e?"context="+e:"")};