bbpress plugin beta2 breadcrumbs

I noticed that beta2 changed the breadcrumbs to include a ‘Home’ button as the first level. The suggestion would be to have the ‘Home’ button link to the forum home page and not the site root home page.

It is rather confusing even to myself to be kicked from the forums when clicking the home breadcrumb link. I would expect to be sent to the forum homepage instead.

Yup, I am more than comfortable with modifying this for my own needs. I was just thinking that the standard should go to the forums, as people browsing forums wouldn’t expect to jump to the homepage via forum breadcrumbs.

The sanity check that I do in the breadcrumb is to check if the root slug is being included in the forums or not. If there’s no root slug, in the URL, then there’s no definitive breadcrumb that bbPress could know about. My logic may still be flawed here though.

In beta1, I remember seeing a “Forums” link in the breadcrumbs, such as Forums > Forum 1. In beta2, this is no longer the case: I see Home > Forum 1 whereas I would have expected it to show Home > Forums > Forum 1.

I’ve been tweaking the breadcrumbs, trying to find the sweet spot. There’s starting to be a lot of possible ways to display the forum archives now. With page templates, archives, shortcodes, etc… it’s hard to know what is the actual root and where.

I think I’ve got it dialed in for Beta 3. I spent the majority of last night testing all of the above scenarios.

Also, for theme authors that want to have tricked out and customized themes that might need radical changes to the breadcrumb, the breadcrumb can be fed a bunch of parameters to adjust and/or force certain crumbs to appear, or turned off completely.