Browse Source

Fix url filter for lp item of type link - refs BT#12879

Angel Fernando Quiroz Campos 7 years ago
parent
commit
2261829546
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/lp/learnpath.class.php

+ 3 - 1
main/lp/learnpath.class.php

@@ -11770,7 +11770,9 @@ EOD;
             case TOOL_ANNOUNCEMENT:
                 return $main_dir_path.'announcements/announcements.php?ann_id='.$id.'&'.$extraParams;
             case TOOL_LINK:
-                return $main_dir_path.'link/link_goto.php?link_id='.$id.'&'.$extraParams;
+                $linkInfo = Link::get_link_info($id);
+
+                return $linkInfo['url'];
             case TOOL_QUIZ:
                 if (empty($id)) {
                     return '';