Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.5
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2013 at 13:03 UTC
Updated:
13 Mar 2013 at 08:26 UTC
When using an image as text (like an edit image instead of the text 'edit') in the page view the url only has the path part and the query part has disappeared.
However when using ajax (preview, pager) it does show.
using the following handler code
class views_field_handler_node_link_image_edit extends views_handler_field_node_link_edit
{
/**
* Renders the image link.
*/
function render_link($node, $values) {
$text = parent::render_link($node, $values);
$this->options['alter']['html'] = TRUE;
$img = array(
'#theme' => 'image_view_edit',
'#title' => $text,
'#alt' => $text,
);
return drupal_render($img);
}
}
Anyone has a clue to get the query part showing in the normal (page) view?
Comments
Comment #1
bugster commentedReplacing the image with plain text resolves the issue, but that's not what the designer wants ;)
Ajaxing the view also 'repairs' the link, not at first, but after an search or paging action the links are how they should be.
Comment #2
bugster commentedSeems that if I disable the CDN module the problem is resolved
Comment #2.0
bugster commentedadded clue sentence