weppos / breadcrumbs_on_rails

A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation.
https://simonecarletti.com/code/breadcrumbs-on-rails
MIT License
944 stars 188 forks source link

Last node url of the breadcrumbs cannot build link but text when certain length exceeded. #86

Closed neilma closed 6 years ago

neilma commented 8 years ago

Looks like the when last node url of the breadcrumbs exceeds a certain length, (the url ends with a number, don't know if this is a factor), the breadcrumb link shows as text instead of link.

The workaround appears to be to append '/' to the end of the url.

weppos commented 8 years ago

Can you provide an example or a test case?

ggtmtmgg commented 7 years ago

I don't know your situation, but I believe link_to_unless_current method changes it to text.

Here is code: https://github.com/weppos/breadcrumbs_on_rails/blob/master/lib/breadcrumbs_on_rails/breadcrumbs.rb#L91