Deprecation: #100014 - Function getParameterFromUrl() of @typo3/backend/utility module
See forge#100014
Description
The function
get of the
@typo3/
module was used to obtain a query string argument from an arbitrary URL.
Meanwhile, browsers received the URLSearchParams API that can be used
instead.
Therefore,
get has been marked as deprecated.
Impact
Calling
get will trigger a deprecation warning.
Affected installations
All installations using third-party extensions relying on the deprecated code are affected.
Migration
Migrate to the following snippet to get the same result:
const paramValue = new URL(url, window.location.origin).searchParams.get(parameter);
Copied!