diff --git a/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc b/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc
index 8aa156abdfdf03f485027f190c6d7cd8dc47416e..2a0047b289ac17ed05c21e35eb243f2eb6eec14a 100644
--- a/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc
+++ b/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc
@@ -54,7 +54,7 @@ update_attr_thank_you = Thank you, %1$s, your user attributes are now up to date
 
 auth_success_text = You were successfully authenticated with User ID '<b>%1$s</b>'. You may now access remote resources using the TextGrid Lab. This window can be closed.
 
-more_details = More <a href=\"javascript:toggle('d123')\">Details</a>.
+more_details = More <a href="%1$s">Details</a>.
 
 authn_details_heading = Authentication Details
 
diff --git a/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc b/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc
index 8aa156abdfdf03f485027f190c6d7cd8dc47416e..2a0047b289ac17ed05c21e35eb243f2eb6eec14a 100644
--- a/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc
+++ b/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc
@@ -54,7 +54,7 @@ update_attr_thank_you = Thank you, %1$s, your user attributes are now up to date
 
 auth_success_text = You were successfully authenticated with User ID '<b>%1$s</b>'. You may now access remote resources using the TextGrid Lab. This window can be closed.
 
-more_details = More <a href=\"javascript:toggle('d123')\">Details</a>.
+more_details = More <a href="%1$s">Details</a>.
 
 authn_details_heading = Authentication Details
 
diff --git a/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php b/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php
index 37f2d50c6d08ea84050933373510e2eb2ef19f7e..b9d1e36d27daa9ee60211b96280f9471ce54bf88 100644
--- a/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php
+++ b/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php
@@ -47,7 +47,7 @@ class WebUtils {
     echo "<p>".$this->t->_('auth_success_text','',array($rbachash["remote_user"]))."</p>\n";
 
     // Details -----------------------------------------------
-    echo "<p>".$this->t->_('more_details')."</p>\n";
+    echo "<p>".$this->t->_('more_details','',array("javascript:toggle('d123')"))."</p>\n";
     echo "<div id=\"d123\"> <h2>".$this->t->_('authn_details_heading')."</h2>\n";
     echo "<table><tr><td>".$this->t->_('tgauth_instance')."</td><td>". $rbachash["rbacbase"] ."</td></tr>\n";
     echo "<tr><td>".$this->t->_('idp_entityid')."</td><td>". $rbachash["identity_provider"]  ."</td></tr>\n";