diff --git a/course/social.php b/course/social.php
index 7bf1ab9946e..16fa24cf430 100644
--- a/course/social.php
+++ b/course/social.php
@@ -13,7 +13,7 @@
print_simple_box(get_string("people"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
$moddata[]="id\">".get_string("participants")."";
$modicon[]="
";
- $editmyprofile = "id&course=$course->id\">".
+ $editmyprofile = "firstname $USER->lastname\" HREF=\"../user/view.php?id=$USER->id&course=$course->id\">".
get_string("editmyprofile")."";
if ($USER->description) {
$moddata[]= $editmyprofile;
diff --git a/course/topics.php b/course/topics.php
index 132ef299865..a2b27856583 100644
--- a/course/topics.php
+++ b/course/topics.php
@@ -48,7 +48,7 @@
print_simple_box(get_string("people"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
$moddata[]="id\">".get_string("participants")."";
$modicon[]="
";
- $editmyprofile = "id&course=$course->id\">".get_string("editmyprofile")."";
+ $editmyprofile = "firstname $USER->lastname\" HREF=\"../user/view.php?id=$USER->id&course=$course->id\">".get_string("editmyprofile")."";
if ($USER->description) {
$moddata[]= $editmyprofile;
} else {
diff --git a/course/weeks.php b/course/weeks.php
index 1b805042036..49321c71ba0 100644
--- a/course/weeks.php
+++ b/course/weeks.php
@@ -35,7 +35,7 @@
print_simple_box(get_string("people"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
$moddata[]="id\">".get_string("participants")."";
$modicon[]="
";
- $editmyprofile = "id&course=$course->id\">".get_string("editmyprofile")."";
+ $editmyprofile = "firstname $USER->lastname\" HREF=\"../user/view.php?id=$USER->id&course=$course->id\">".get_string("editmyprofile")."";
if ($USER->description) {
$moddata[]= $editmyprofile;
} else {