diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php
index 3175d49ad1f..3b9062e1f18 100644
--- a/htdocs/admin/modulehelp.php
+++ b/htdocs/admin/modulehelp.php
@@ -376,10 +376,12 @@ if ($mode == 'desc') {
}
$editor_url = $objMod->editor_url;
if (!preg_match('/^http/', $editor_url)) {
- $editor_url = 'http://'.$editor_url;
+ $editor_url = 'https://'.$editor_url;
}
+ $editor_url_to_show = preg_replace('/(utm_[a-z_]+|origin)=[a-z0-9_]+/i', '', $editor_url);
+ $editor_url_to_show = preg_replace('/[\/\?]+$/', '', $editor_url_to_show);
if (!empty($objMod->editor_url) && !preg_match('/dolibarr\.org/i', $objMod->editor_url)) {
- $textexternal .= ($objMod->editor_name != 'dolibarr' ? ' - ' : '').img_picto('', 'globe').' '.$objMod->editor_url.'';
+ $textexternal .= ($objMod->editor_name != 'dolibarr' ? ' - ' : '').img_picto('', 'globe').' '.$editor_url_to_show.'';
}
$text .= $textexternal;
} else {