Deprecation: #104154 - Deprecate Utility.updateQueryStringParameter()
See forge#104154
Description
The
Utility.
method in the
@typo3/
module was introduced in TYPO3 v8 as a bugfix
for highlighting in the old ExtJS-based page tree. Since removal of ExtJS in
TYPO3 v9 the method has been unused.
Because safe removal of the method cannot be guaranteed as this point, it is therefore deprecated.
Impact
Calling
Utility.
will result in a JavaScript
warning.
Affected installations
All 3rd party extensions using the deprecated method.
Migration
Now, JavaScript supports the
URL
and its related
URLSearch
object that can be used to achieve the same result:
const url = new URL('http://localhost?baz=baz');
url.searchParams.set('baz', 'bencer');
const urlString = url.toString(); // http://localhost?baz=bencer
Copied!