Skip to content

Bug: url-options-manager uses deprecated substr() causing edge-case failures #807

@GaneshPatil7517

Description

@GaneshPatil7517

In url-options-manager.ts:36, window.location.href.substr() is used, which is deprecated in ECMAScript. When the URL has no query string, lastIndexOf('?') returns -1, making substr(-1) extract just the trailing character. Should be replaced with substring() or slice(), with a guard for missing ?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions