I propose adding a :allow_index option to #breadcrumbs_trail. If false (default), the behaviour stays the same. If true, the behaviour changes so that index.* filenames are considered to be at the equal level. The example above with allow_index: true would then become either
#breadcrumbs_trail
only treats the index filename special at the root. For example:I propose adding a
:allow_index
option to #breadcrumbs_trail. If false (default), the behaviour stays the same. If true, the behaviour changes so thatindex.*
filenames are considered to be at the equal level. The example above withallow_index: true
would then become eitheror
In the case where the parent is ambiguous (such as in the example above), #breadcrumbs_trail should raise an error.
The same also applies to the child-parent helper.