The default action for the "Owner" contextual filter of the supplied "Files" View under user/%/my-files is set to "empty". This causes a Views quirk to appear when generating the breadcrumb (see: https://drupal.org/comment/8548197).

Instead of the breadcrumb showing as:

Home (/) > User (/user) > Files (/user/{uid}/my-files)

it's showing as:

Home (/) > User (/user) > Files (/user/all/my-files) > Files (/user/{uid}/my-files)

It's difficult to tell whether or not this is intended behaviour in Views, or a bug. However, it's easy to workaround by changing the default action on the contextual filter from "empty" to "not found". This avoids the Views issue, and is probably more appropriate anyway.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jmking’s picture

Status: Active » Needs review
FileSize
1.01 KB

Attached a simple patch to change the default. However, this won't fix it for people who have already installed the module and may have already customized the supplied view.

jmking’s picture

Issue summary: View changes
bojanz’s picture

Status: Needs review » Fixed

Yes, that makes more sense in any case. Committed, thanks.

Status: Fixed » Closed (fixed)

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