diff --git a/unitartucs/thesis.cls b/unitartucs/thesis.cls
index 60b9d6a6b32d0ad361c514d93f14243673a329e6..5f56f87ef10a7d379cfbc074cc2866ce08a20357 100644
--- a/unitartucs/thesis.cls
+++ b/unitartucs/thesis.cls
@@ -263,7 +263,7 @@
     }
     \NewDocumentCommand\underLine{+m}{{\@underLine#1}}
     \DeclareUrlCommand{\Hurl}{% https://tex.stackexchange.com/a/169734
-        \def\UrlLeft##1\UrlRight{\underLine{##1}}
+        \def\UrlLeft##1\UrlRight{\@underLine##1} % Use \@underLine directly to allow line breaks in urls
     }
 
     % hyperref-i adapteerimine lisatud subsubsubsection-i jaoks