Skip to content

api-fetch query parameters are dropped #2922

@mkevins

Description

@mkevins

Describe the bug
Because URL is only partially implemented on mobile, in certain cases, query parameters are dropped prior to invocation of api-fetch. This results in incorrect behavior, since the API request is missing parameters. In link picker, it manifests as omitting the search parameter, which results in the same results (a "blank" search) being returned in all cases.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new post or page (on a site with some published posts and pages)
  2. Add a button block
  3. Edit the link in the button block
  4. Tap "Search or type URL" to open link picker
  5. Begin typing a few characters and wait for the results
  6. Erase the search a type a few different characters

Expected behavior
The results should be different for searches which have differerent queries. The search results should reflect the query being searched for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Web breakageCaused by incompatible changes on Gutenberg web[Type] BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions