Skip to content

Missing autofix for jQuery.sap.getUriParameters #530

@flovogt

Description

@flovogt

Missing autofix for jQuery.sap.getUriParameters

jQuery.sap.getUriParameters is deprecated and replaced by native browser APIs. Therefore an autofix should be offered by UI5 linter.

Deprecated Usage

var currentParams = jQuery.sap.getUriParameters();
var paramsByUrl = jQuery.sap.getUriParameters("/service?x=1&y=2&z=true");

Recommended Usage

var currentParams = new URLSearchParams(window.location.search);
var paramsByUrl = new URL("/service?x=1&y=2&z=true").searchParams;

Metadata

Metadata

Assignees

No one assigned

    Labels

    autofixAn issue related to the autofix capabilities

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions