From: Michael Date: Tue, 6 Jun 2023 20:41:54 +0000 (+0000) Subject: Remove the "www." from the styled URL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=09ce625d50bb10d7f03b9dcab1cf0b518d2f5870;p=friendica.git Remove the "www." from the styled URL --- diff --git a/src/Util/Strings.php b/src/Util/Strings.php index c3b77ab48c..bc1a0e4be9 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) {