Remove the "www." from the styled URL

This commit is contained in:
Michael 2023-06-06 20:41:54 +00:00
parent 141c55fe7f
commit 09ce625d50
1 changed files with 1 additions and 1 deletions

View File

@ -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) {