In our application, various articles can be reached via a number of paths.
You could, for example, go
"home > category 'rock music' > article 'Behind the Beatles'"
,
or "home > category 'pop music' > article 'Behind the Beatles'"
,
or even "home > magazine > series 'background' > article 'Behind the Beatles'"
and reach the same arti开发者_开发百科cle every time.
I'm guessing I need to save the path the user takes in the session, and push / pop individual elements, but I'm hoping someone somewhere already has a working solution.
I checked out the following gems already: crummy, breadcrumbs-on-rails and gretel, and (barring me misunderstanding the documention) they all seem to expect a single path to a node.
I would recommend that you don't do what you are proposing. Search engines recognise breadcrumbs (with use of proper tags). What you're talking about sounds more like related navigable content 'See also...'.
If you decide this is really what you want to do, have separate routes and noindex tags on one of the pages.
精彩评论