Merge pull request #13203 from annando/styled-url
Remove the "www." from the styled URL
This commit is contained in:
commit
50988bf5f1
|
@ -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