Closed molfar closed 3 years ago
Changing this line to
view.breadcrumb_trail(&block)
or to
view.breadcrumb_trail(match: : inclusive, &block) # any other valid match value
does not make test fail
Hi! Thanks for this report. This sounds like a bug. Would you have time to submit a fix with a test?
I cant catch this bug yet, I arrived to https://github.com/piotrmurach/loaf/blob/6a8d586d3a49b4e524be425dee86d5def8eb79f1/lib/loaf/view_extensions.rb#L90 This regex works not as expected. It doesn not show that "/" is active within "/posts". Thats why test "allows to overwrite global configuration" not failing.
Passing any match options to breadcrumb_trail inside views has no effect.