diff --git a/main/course_home/activity.php b/main/course_home/activity.php index e1aa2571b0..606dee9b45 100644 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -276,7 +276,13 @@ function show_tools_category($course_tool_category) $class=''; $qm_or_amp = ((strpos($toolsRow['link'], '?') === FALSE) ? '?' : '&'); - $toolsRow['link'] = $toolsRow['link'].$qm_or_amp.api_get_cidreq(); + //If it's a link, we don't add the cidReq + if($toolsRow['image'] == 'file_html.gif' || $toolsRow['image'] == 'file_html_na.gif'){ + $toolsRow['link'] = $toolsRow['link'].$qm_or_amp; + } + else{ + $toolsRow['link'] = $toolsRow['link'].$qm_or_amp.api_get_cidreq(); + } if(strpos($toolsRow['name'],'visio_')!==false){ echo "\t" . '     '; }