Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2007 at 15:47 UTC
Updated:
15 Mar 2010 at 18:27 UTC
Breadcrumb - not replaced % mark in the title of views.
patch is :
- $breadcrumb[] = l(filter_xss_admin(views_get_title($view, 'page', $args)), $url, NULL, NULL, NULL, NULL, TRUE);
+ $breadcrumb[] = l(filter_xss_admin(views_get_title($view, 'page')), $url, NULL, NULL, NULL, NULL, TRUE);
| Comment | File | Size | Author |
|---|---|---|---|
| views.patch | 573 bytes | Dimm |
Comments
Comment #1
kscheirerregarding that line of code,
I notice that there's no check to make sure views_get_title() actually returns text. If the user doesn't enter a view title, l() will still happily make a link and insert it in the breadcrumb, as something like
which results in breadcrumbs like: Home > > Argument1
I'd be happy to create a patch to add this check if anyone else has had the same problem.
Comment #2
sunYes, please add that check.
This patch also needs some positive test results from other users to be included in 1.7.
Comment #3
ryo commentedUnfortunately the patch doesn't work for me...
Views titles duplicate in the breadcrumbs.
Please see also
Wrong breadcrumbs when view with argument is in menu
If you have the whole following line (line: 1486)
//$breadcrumb[] = l(filter_xss_admin(views_get_title($view, 'page', $args)), $url, NULL, NULL, NULL, NULL, TRUE);commented out and have the menu items for your view pages,
things go quite well.
But instead, if you don't have menu items, disappears the breadcrumb of the parent (no argument) view's title.
Comment #4
esmerel commentedThis is not going to get fixed in 1.x