Problem/Motivation

When adding a field, selecting "Reference" opens a dialog titled "Add field: Reference". Selecting "File upload" opens a dialog titled "Add field: File upload".

Opening either link in a new tab shows the generic title "Add Sub-field". The title gives no indication of which option was selected.

 Reference
Dialog: Reference
 File
Dialog: File
 Reference (before)
Standalone: Reference (before)
 File
Standalone: File (before)

Background

This is a followup to #3386762: Use modals in field creation and field edit flow and #3408326: Make field selection a two-step form.

Proposed resolution

Use the selected field option's label to generate the route title for both the dialog and the standalone page.

Remaining tasks

Review.

User interface changes

The title of the second step shows the option selected in the first step, whether it opens in a dialog or as a standalone page.

 Reference (before)
Standalone: Reference (after)
 File
Standalone: File (after)

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

When you open a field option in a new tab, the Add field page now shows the selected option in its title, just as the dialog does.

Issue fork drupal-3639522

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pancho created an issue. See original summary.

pancho’s picture