diff --git a/modules/saml2/lib/Auth/Source/SP.php b/modules/saml2/lib/Auth/Source/SP.php
index b7217aef9571e0829cda65caec1fbe3b05cc8989..c559685d4f5c13ee1d7879a5fba48b984e180c60 100644
--- a/modules/saml2/lib/Auth/Source/SP.php
+++ b/modules/saml2/lib/Auth/Source/SP.php
@@ -55,7 +55,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source {
 			$this->entityId = $config['entityId'];
 		} else {
 			$this->entityId = SimpleSAML_Module::getModuleURL('saml2/sp/metadata.php?source=' .
-				urlencode($this->authId) . '&tmp');
+				urlencode($this->authId));
 		}
 
 		if (array_key_exists('idp', $config)) {