When you change the name (label) of your content type, your breadcrumbs still show the original content type name.

In the 2015 Usability study, one participant realized they named their content type "Session track" when they intended to name it "Session proposal". They edited the content type label to "Session proposal":
content type name

But then on the Manage fields page became confused when they saw "Session track" in the breadcrumb:

Manage fields breadcrumb

It was even more confusing because, as seen in the screenshot above, they created field called "Session track" after realizing that it should be a field and not a content type ...

Clearing the cache does not resolve this issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lunk rat’s picture

lunk rat’s picture

Looks like this even affects the built-in "Basic page" content type. Here it is in the listing:

basic page listing

Yet in the breadcrumb it's displayed as just "Page":

basic page breadcrumb

tim.plunkett’s picture

Component: cache system » node system
Status: Active » Needs review
FileSize
2.94 KB

Here's a test proving the bug.
Interestingly enough, renaming the machine name of the content type *does* fix the breadcrumb. That should help to find the cause.

This might be more wide-spread than just content types, but moving to node for now.

Status: Needs review » Needs work

The last submitted patch, 3: 2513570-3.patch, failed testing.

kevin.dutra’s picture

Hmm, there might be two different bugs going on here. One aspect revolves around improper cacheability metadata. Looking at the cache tags that are applied (by checking the DB directly), I find block_view config:block.block.seven_breadcrumbs rendered. No entity related cache tags at all.

I can confirm that this does expand beyond just content types. It seems the same is true for any breadcrumb that is using the label of an entity. I haven't dug down to see whether the metadata just isn't being supplied or if it's not bubbling up correctly.

That being said, a cache rebuild does fix the problem for nodes (as an example). But since it doesn't fix it for content types, there must be something else coming into play too.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jonathanshaw’s picture

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

idebr’s picture

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jeromewiley’s picture

Subscribe. (on my D 8.3.6 site, I have updated a content type from "story" to "Story" and it's still showing "story")

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

kfritsche’s picture

jonathanshaw’s picture

So #2855636: Regression: incorrect human-readable name for content type is fixed and covers the same as #2835018: The content type name in the backend breadcrumb should be Human name. That would appear to address half this issue, and the other half is now covered by #2607920: Breadcrumb render cache not invalidated when entity label changes. So it looks like this can now be closed as a duplicate?

tstoeckler’s picture

Status: Needs work » Closed (duplicate)

Yes, I think that makes sense.