[Catalyst] Action for index not 'index'?

Kyle Hall kyle.m.hall at gmail.com
Wed Mar 23 13:40:20 GMT 2011


Hello All,

I'm working on adding breadcrumbs to my catalyst app and I've run into
something unexpected.

I'm using Catalyst::Plugin::Breadcrumbs. Let's assume I have a
controller Foo. If I just go to /foo ( the index ), the plugin assumes
that the action will be 'index', but the action is actually just
'foo'.

Because of this, my breadcrumbs show as Foo/Foo instead of Foo/Index (
or just Foo if hide_index is true ).

Is this expected behaviour? Has the behaviour changed since
Plugin::Breadcrumbs was written? I've been able to modify the code for
the plugin to compensate, but was hoping someone could shed some light
on this subject.

Thanks,
Kyle

http://www.kylehall.info
Mill Run Technology Solutions ( http://millruntech.com )
Crawford County Federated Library System ( http://www.ccfls.org )
Meadville Public Library ( http://www.meadvillelibrary.org )



More information about the Catalyst mailing list