Merge pull request #13203 from annando/styled-url
Remove the "www." from the styled URL
This commit is contained in:
commit
50988bf5f1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue