Skip to content

Commit

Permalink
Use URLs without redirects (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Apr 22, 2021
1 parent d18147e commit aa9c143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function path()

public function url()
{
return $this->content->url();
return $this->content->urlWithoutRedirect();
}

public function site()
Expand Down
5 changes: 5 additions & 0 deletions src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public function url()
return URL::makeRelative($this->url);
}

public function urlWithoutRedirect()
{
return $this->url();
}

public function site()
{
return Site::findByUrl($this->url);
Expand Down

0 comments on commit aa9c143

Please sign in to comment.