Skip to content

Commit

Permalink
Used resource title instead of resource type in page title.
Browse files Browse the repository at this point in the history
  • Loading branch information
Faakhir30 committed Oct 14, 2024
1 parent b79ef9d commit 0d31554
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/6308.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Used `resource title` instead of `resource type` in page title on edit. @Faakhir30
10 changes: 7 additions & 3 deletions packages/volto/src/components/manage/Edit/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,15 @@ class Edit extends Component {
<>
<Helmet
title={
this.props?.schema?.title
this.props?.content?.title
? this.props.intl.formatMessage(messages.edit, {
title: this.props.schema.title,
title: this.props?.content?.title,
})
: null
: this.props?.schema?.title
? this.props.intl.formatMessage(messages.edit, {
title: this.props.schema.title,
})
: null
}
>
{this.props.content?.language && (
Expand Down

0 comments on commit 0d31554

Please sign in to comment.