From 09ce625d50bb10d7f03b9dcab1cf0b518d2f5870 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 6 Jun 2023 20:41:54 +0000 Subject: [PATCH] Remove the "www." from the styled URL --- src/Util/Strings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {