Comments (7)
It is. I displayed link_to_unless_current on page with the same link as was given to breadcrumbs and there wasn't link.
Nobody else got this problem with gem?
And, before update, the last wasn't link. Only after update, that's why I suppose that this can be bug.
from breadcrumbs_on_rails.
An element is not generated as a link only when its url is equal to the current page url.
from breadcrumbs_on_rails.
Works fine for me. So if you switch back to the previous version does it work fine? What version was that?
from breadcrumbs_on_rails.
Found the problem.
I also have installed gem twitter-bootstrap-rails and this caused the problem. Because it have exactly same methods - add_breadcrumb and render_breadcrumbs. And breadcrumbs were rendered by this gem, not by breadcrumbs_on_rails.
Will try to solve this...
from breadcrumbs_on_rails.
I have not installed gem twitter-bootstrap-rails
, but last element is link too. What me do?
from breadcrumbs_on_rails.
@araslanov-e - does the below seem similar to your issue?
I am having this problem when I have a URL parameter that has a different case.
For example:
/collections/all/1
renders without the last element as a link.
/collections/All/1
renders with the last element as a link.
from breadcrumbs_on_rails.
The issue comes down to the link_to_unless_current
method used by this gem. Since I used two different ways to generate the URL in my views, I noticed the difference in the URL. It doesn't look like link_to_unless_current
ignores case (which is probably the right call).
I resolved this by checking the collection_piece_type
param in my controller action to see if it contains any uppercase characters. If it does, I convert the specific param to lowercase and call redirect_to
with the all lowercase version. It did not require any changes to this gem.
See ActionView::Helpers::UrlHelper.link_to_unless_current.
from breadcrumbs_on_rails.
Related Issues (20)
- :title in options do not work HOT 1
- Dynamic switching languages only changes last element HOT 4
- Breadcrumbs don't work if controller action is private HOT 2
- after last
- how to remove breadcrumb on special controller/action HOT 1
- Can you add css class to this? HOT 2
- Need config for seperator when default HOT 1
- Unable to use CSS options for final elements in default builder HOT 2
- Is there a way to pass args to target_path? HOT 1
- Hide the breadcrumbs if none present HOT 1
- Separator not displayed HOT 2
- add_breadcrumb is showing the text of the breadcrumb but they are not links HOT 1
- Use schema.org microdata with breadcrumbs_on_rails HOT 4
- Why is this gem explicitly mixed in? HOT 2
- Unclear Set Up Instructions HOT 1
- Replace dependency on `rails` with `railties` HOT 1
- Ability to fully support Bootstrap's markup? HOT 4
- Breadcrumbs outside controllers (like storybook previews) HOT 1
- Missing required keys: [:id] HOT 1
- Breadcrumbs on Rails with Tailwind HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breadcrumbs_on_rails.