Hi,

I'm playing around with a view that has 3 contextual filters. For every filter that has a representation of that filter in the url, a breadcrumb is added with that filter as url.

So in the case where all my arguments are named 'all', the 3 breadcrumbs will link to: view/all , view/all/all, view/all/all/all and they're all named after the views title.

CommentFileSizeAuthor
duplicate breadcrumbs.jpg71.49 KBdanny_joris

Comments

smitty’s picture

This is really a serious problem!

In my case all these links point to urls which do not exist and so the result of clicking on them is a "page not found".

I think this problem is a quite old one: drupalninja99 reported it for D6 at: drupal.org/node/243086

In http://drupal.org/node/769498 I found a practicable workaround:

You can write a small module and use the hook_views_pre_render to delete or modify the breadcrumb.

ashleyhazle’s picture

Category: bug » support
Status: Active » Needs review

You can set breadcrumbs by using the Override breadcrumb option in the filters settings.

The override effects the crumb for the previous item. So if you had a view page called Foo and 3 filters creating the url foo/bar/2012/05 and wanted the breadcrumbs to read Home » Foo » Bar » 2012, you would not override the filter for Bar, override the breadcrumb for 2012 with %1 and the breadcrumb for 05 with %2.

I don't think I am explaining this very well, but hopefully it will get you started.

A

dawehner’s picture

Status: Needs review » Fixed

Thanks for the answer!

I guess this can be marked as fixed then.

Status: Fixed » Closed (fixed)

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