diff --git a/include/class.osticket.php b/include/class.osticket.php
index 41fe2f20d58abb1efee0c52c2369c2fcb45388fb..dce94a8feefde5518ca06b85d0a841bfe7304502 100644
--- a/include/class.osticket.php
+++ b/include/class.osticket.php
@@ -224,12 +224,11 @@ class osTicket {
     function alertAdmin($subject, $message, $log=false) {
 
         //Set admin's email address
-        if(!($to=$this->getConfig()->getAdminEmail()))
-            $to=ADMIN_EMAIL;
-
+        if (!($to = $this->getConfig()->getAdminEmail()))
+            $to = ADMIN_EMAIL;
 
         //append URL to the message
-        $message.="\n\n".THISPAGE;
+        $message.="\n\n".$this->getConfig()->getBaseUrl();
 
         //Try getting the alert email.
         $email=null;