Skip to content

Commit

Permalink
Google will accept only fully qualified URL's (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurawindsurfing authored and freekmurze committed Sep 17, 2018
1 parent aa78db7 commit 0b2a41a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tags/Url.php
Expand Up @@ -32,7 +32,7 @@ class Url extends Tag

public static function create(string $url): self
{
return new static($url);
return new static(url($url));
}

public function __construct(string $url)
Expand Down Expand Up @@ -101,7 +101,7 @@ public function setPriority(float $priority)
*/
public function addAlternate(string $url, string $locale = '')
{
$this->alternates[] = new Alternate($url, $locale);
$this->alternates[] = new Alternate(url($url), $locale);

return $this;
}
Expand Down

0 comments on commit 0b2a41a

Please sign in to comment.