https://drupal.org/node/1940738
https://drupal.org/files/respect_link_target-1940738-1.patch
diff --git a/field_slideshow.module b/field_slideshow.module
index e3eb071..cb5fc62 100644
--- a/field_slideshow.module
+++ b/field_slideshow.module
@@ -704,9 +704,13 @@ function field_slideshow_field_formatter_view($entity_type, $entity, $field, $in
if ($field['type'] == 'media') $pathfield = $item['file']->$settings[$setting];
elseif ($field['type'] == 'field_collection') $pathfield = $item[$settings[$setting]];
if (isset($pathfield[$langcode])) {
+ $opts = array();
+ if(isset($pathfield[$langcode][0]['attributes']) && isset($pathfield[$langcode][0]['attributes']['target']) && $pathfield[$langcode][0]['attributes']['target'] !== 0) {
+ $opts = array("attributes" => $pathfield[$langcode][0]['attributes']);
+ }
$uri = array(
'path' => $pathfield[$langcode][0]['url'],
- 'options' => array(),
+ 'options' => $opts,
);
}
break;