diff --git a/amd/src/jmodule.js b/amd/src/jmodule.js
index 06e381c927ff9322a178dcad705ce62bbc5059b7..47444f087c8b01475022936af0a05d5d296c5cca 100644
--- a/amd/src/jmodule.js
+++ b/amd/src/jmodule.js
@@ -52,12 +52,16 @@ define(['jquery'], function ($) {
                                 + '<a href="' + wwwroot + '/course/view.php?id=' + course.id + '">' + displaystr + '</a> </li>')
                                 .appendTo(list);
                         });
+                    } else {
+                        $('<li class="list-group-item hshcoursesearchlistitem " value="">'
+                            + '<a href="' + wwwroot + '/my/">Keine Ergebnisse gefunden.</a> </li>')
+                            .appendTo(list);
                     }
                     $("#hshcourselistul").replaceWith(list);
                     $("#hshcourseprogress").hide();
                 },
                 error: function (a) {
-                    console.error("error " + JSON.stringify(a));
+                    $(location).attr('href', wwwroot + '/my/');
                 }
             });
         } else {