diff --git a/mod/glossary/filter.php b/mod/glossary/filter.php
index 64938740b3d..5175dc3a2fc 100644
--- a/mod/glossary/filter.php
+++ b/mod/glossary/filter.php
@@ -116,7 +116,7 @@ function glossary_filter($courseid, $text) {
if ($concept->category) { // Link to a category
$title = strip_tags($glossaryname.': '.$strcategory.' '.$concept->concept);
- $href_tag_begin = 'wwwroot.'/mod/glossary/view.php?g='.$concept->glossaryid.
'&mode=cat&hook='.$concept->id.'">';
} else {
@@ -127,7 +127,7 @@ function glossary_filter($courseid, $text) {
$encodedconcept = urlencode($concept->concept);
$title = str_replace('"', "'", strip_tags($glossaryname.': '.$concept->concept));
}
- $href_tag_begin = 'wwwroot.'/mod/glossary/showentry.php?courseid='.$courseid.
'&concept='.$encodedconcept.'" '.
'onclick="return openpopup(\'/mod/glossary/showentry.php?courseid='.$courseid.