diff --git a/src/Util/Strings.php b/src/Util/Strings.php index c3b77ab48..bc1a0e4be 100644 --- a/src/Util/Strings.php +++ b/src/Util/Strings.php @@ -570,7 +570,7 @@ class Strings public static function getStyledURL(string $url): string { $parts = parse_url($url); - $scheme = $parts['scheme'] . '://'; + $scheme = [$parts['scheme'] . '://www.', $parts['scheme'] . '://']; $styled_url = str_replace($scheme, '', $url); if (strlen($styled_url) > 30) {