Deprecation: #100014 - Function getParameterFromUrl() of @typo3/backend/utility module

See forge#100014

Description

The function getParameterFromUrl() of the @typo3/backend/utility 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, getParameterFromUrl() has been marked as deprecated.

Impact

Calling getParameterFromUrl() 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);