Skip to content

Prepopulate Page creation dialog with search text when no results are found #73313

@getdave

Description

@getdave

What

In the Nav Link block's Link UI, when searching for a Page sometimes one isn't found - as a result the user may wish to create a page via the Add Page option found below the search field.

When they click "Add page" the dialog appears but the user must re-enter the same text again in the Page creation dialog.

This Issue proposes auto-populating the Page Title field in the creation dialog with the text the user entered in the search field, provided the input is not URL-like.

Why

Users frequently type the intended Page title directly into the search field as part of their natural workflow.

Prepopulating the creation dialog reduces redundancy, makes the flow smoother, and better matches user expectations.

Avoiding prepopulation for URL-like input ensures the behaviour is predictable and avoids confusing or inappropriate autofill values.

How

  • Detect when the user’s search input produces no matching results.
  • If the input is not URL-like (for example using an isUrlLike() check), auto-populate the Page Title field in the creation dialog with the typed text.
  • Do not auto-focus the field; keep the existing focus behaviour.
  • Apply this enhancement only within the Navigation block’s enhanced Page creation flow.
  • Ensure the behaviour integrates cleanly with existing creation logic and messaging.

User Stories

As a user, I want the Page creation dialog to prepopulate with the title I already typed into the link search box, so I don’t have to enter the same text twice.

As a user, I want this behaviour to occur only when no existing Pages match my search, so the experience feels predictable and intentional.

As a user, I want URL-like text to be ignored for prepopulation, so the Page title is only auto-filled when it genuinely represents a Page name.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions