Remove the "www." from the styled URL
This commit is contained in:
parent
141c55fe7f
commit
09ce625d50
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ class Strings
|
||||||
public static function getStyledURL(string $url): string
|
public static function getStyledURL(string $url): string
|
||||||
{
|
{
|
||||||
$parts = parse_url($url);
|
$parts = parse_url($url);
|
||||||
$scheme = $parts['scheme'] . '://';
|
$scheme = [$parts['scheme'] . '://www.', $parts['scheme'] . '://'];
|
||||||
$styled_url = str_replace($scheme, '', $url);
|
$styled_url = str_replace($scheme, '', $url);
|
||||||
|
|
||||||
if (strlen($styled_url) > 30) {
|
if (strlen($styled_url) > 30) {
|
||||||
|
|
Loading…
Reference in a new issue