diff --git a/dictionaries/frontpage.php b/dictionaries/frontpage.php
index 8017543865cd42808dfbfa858275bbe17ddad010..ee71acc050514fb53fb06da002e3efcdd7df03ed 100644
--- a/dictionaries/frontpage.php
+++ b/dictionaries/frontpage.php
@@ -536,9 +536,18 @@ $lang = array(
 		'hr' => 'OdrĹľavanje i konfiguriranje simpleSAMLphp-a',
 		'hu' => 'SimpleSAMLphp karbantartása és beállítása',
 	),
-	'link_publish' => array (
+	'link_publish_saml20-idp' => array (
 		'en' => 'Publish my SAML 2.0 IdP metadata to the configured MetaShare',
 	),
+	'link_publish_saml20-sp' => array (
+		'en' => 'Publish my SAML 2.0 SP metadata to the configured MetaShare',
+	),
+	'link_publish_shib13-idp' => array (
+		'en' => 'Publish my Shib 1.3 IdP metadata to the configured MetaShare',
+	),
+	'link_publish_shib13-sp' => array (
+		'en' => 'Publish my Shib 1.3 SP metadata to the configured MetaShare',
+	),
 
 );
 
diff --git a/www/index.php b/www/index.php
index eb68e42690e9a0169a9973339920a018a73dac9f..e32ff3c2e0eddc8fbc829e529dcc779aa411f459 100644
--- a/www/index.php
+++ b/www/index.php
@@ -60,14 +60,25 @@ if($config->getBoolean('idpdisco.enableremember', FALSE)) {
 		);
 }
 
-if ($config->getValue('enable.saml20-idp') === TRUE) {
-	$publishURL = $config->getString('metashare.publishurl', NULL);
-	if ($publishURL !== NULL) {
-		$metadataURL = SimpleSAML_Utilities::resolveURL('saml2/idp/metadata.php');
-		$publishURL = SimpleSAML_Utilities::addURLparameter($publishURL, 'url=' . urlencode($metadataURL));
+
+$publishURL = $config->getString('metashare.publishurl', NULL);
+if ($publishURL !== NULL) {
+	$metadataSources = array(
+		'saml20-idp' => 'saml2/idp/metadata.php',
+		'saml20-sp' => 'saml2/sp/metadata.php',
+		'shib13-idp' => 'shib13/idp/metadata.php',
+		'shib13-sp' => 'shib13/sp/metadata.php',
+		);
+	foreach($metadataSources as $name => $url) {
+		if(!$config->getBoolean('enable.' . $name, FALSE)) {
+			continue;
+		}
+
+		$url = SimpleSAML_Utilities::resolveURL($url);
+		$linkTarget = SimpleSAML_Utilities::addURLparameter($publishURL, 'url=' . urlencode($url));
 		$links[] = array(
-			'href' => $publishURL,
-			'text' => 'link_publish',
+			'href' => $linkTarget,
+			'text' => 'link_publish_' . $name,
 			);
 	}
 }