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

bugster’s picture

Replacing 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.

bugster’s picture

Title: when using a link (render_as_link) normal view throws away the url query part » [SOLVED] When using a link (render_as_link) normal view throws away the url query part
Status: Active » Closed (fixed)

Seems that if I disable the CDN module the problem is resolved

bugster’s picture

Issue summary: View changes

added clue sentence