Skip to content

history.pushState does not update location.pathname #2081

@tmchow

Description

@tmchow

Per the CDP automation compatibility audit in #2043 (by @noricha-vr), calling history.pushState() completes without error but location.pathname still reflects the old value. This breaks SPA routing detection in automation scripts that check pathname after navigation.

The pushState function exists in the WebAPI layer but the URL state doesn't appear to propagate to the location object.

Ref: #2043 (history.pushState row)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions