When configuring users and roles for workbench access, I want to return to the listing page "one level up" on both the ___ by account page and the ___ editors by role page. But, the breadcrumbs are missing from these pages. The only way back up one level is the tabs at the top right, but it's not intuitive that's how you'd do it. (Especially since the "Editors" tab is already active, people would assume clicking on that would keep you on the current page.)

missing breadcrumbs on by account page
missing breadcrumbs on by role page

Could we add the missing breadcrumb (or less ideally, redirect to the listing page after a user or role has been added)

Comments

agentrickard’s picture

My immediate response is: No, this is a core behavior for local menu tasks.

jenlampton’s picture

Title: Missing breadcrumbs when configuring Users and Roles » Change paths when configuring Users and Roles

I think core managed to solve this problem, somehow. For example, the local tasks for manage fields still get the right breadcrumb on the child page:
admin/structure/types/manage/article/display
admin/structure/types/manage/article/display/teaser (has breadcrumb for path above)

agentrickard’s picture

Probably with drupal_set_breadcrumb().

jenlampton’s picture

Sounds delicious :)

agentrickard’s picture

Ah. Core does it because each bundle has a distinct menu callback, we just have an id handler.

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new2.4 KB

Here's a patch. I'm not crazy about it. While it makes for better usability, it does break core patterns.

jenlampton’s picture

Status: Needs review » Reviewed & tested by the community

Much easier to navigate now, thanks! :) I'm not sure about the "breaks core patterns" bit, but this will make my admins happy.

jenlampton’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new57.65 KB
new50.66 KB

It also seems like we might me missing a second level of tabs.

For example, on the "editor" tab you can actually get one level deeper, by clicking on the number of editors in a section.

But once you get there, there's no indication where you are.

agentrickard’s picture

I don't think I can put a sub-tab there, as there could be hundreds of possible sub-menu paths.

jenlampton’s picture

Status: Needs work » Reviewed & tested by the community

Ah I see. Well this is still a huge improvement :)

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

added more about why people won't use the tabs - intuitively