diff --git a/image_link_formatter.module b/image_link_formatter.module index a6abe945e27ea8923ddd3707a2d6383cfe67a8c6..b46bc242fb5b74df40841773fe7c727a9f15332b 100644 --- a/image_link_formatter.module +++ b/image_link_formatter.module @@ -120,6 +120,10 @@ function image_link_formatter_field_formatter_view($entity_type, $entity, $field 'path' => $link_values[$delta]['url'], 'options' => array('attributes' => $link_values[$delta]['attributes']), ); + // Handle query fragment if there is any. + if (isset($link_values[$delta]['query']) && count($link_values[$delta]['query'])>0) { + $uri['options']['query'] = $link_values[$delta]['query']; + } } // If there are more image values than link values unset the link. else {