Url aliasses are currently ignored by the formatters that add links on the thumbnails.

The patch attached fixes that.

CommentFileSizeAuthor
video_embed_field_nice_url.patch7.95 KBjyve

Comments

wbobeirne’s picture

Looks like your .patch includes a ton of changes for spaces in areas that are unrelated to your fix. You may want to re-roll the patch to only include code changes.

jec006’s picture

Status: Needs review » Fixed

Hi Jyve,

This bug has already been fixed with the following code (which is fairly similar):

if($display['settings']['image_link'] == 'source'){
  $link = explode('|||', l('|||', $item['video_url']));
  $element[$delta]['#prefix'] = $link[0];
  $element[$delta]['#suffix'] = $link[1];
}
else if($display['settings']['image_link'] == 'node'){
  $nid = $entity->nid;
  $link = explode('|||', l('|||', 'node/'. $nid));
  $element[$delta]['#prefix'] = $link[0];
  $element[$delta]['#suffix'] = $link[1];
}

[edited for weird spacing]

jec006’s picture

I also committed a fix with all the tabs in the field.inc file replaced with 2 spaces.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.