Problem

Issue #3595596 made the record/file add and edit form titles name the item (kind or custom label), but the record view page (route pdv.record.view) is a separate route that was missed -- it still shows the static title "Structured data".

Proposed

Give pdv.record.view a _title_callback that names the item, reusing the same resolution as the edit title: the custom label if set, else the kind label (e.g. "Civil status" / "État civil"). The shared label resolution is refactored into one itemDisplayLabel() helper used by add/edit/view.

Issue fork pdv-3595612

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

mably created an issue. See original summary.

  • mably committed 0093c546 on 1.x
    task: #3595612 Record view page title says "Structured data" instead of...
mably’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.