Skip to content

Commit

Permalink
Merge branch '4.x' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Jun 17, 2024
2 parents 87863bb + 7d894f3 commit 385ab48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/models/SiteUriModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace putyourlightson\blitz\models;

use craft\base\Element;
use craft\base\Model;
use craft\helpers\UrlHelper;

Expand All @@ -28,6 +29,10 @@ class SiteUriModel extends Model
*/
public function getUrl(array $params = []): string
{
if ($this->uri === Element::HOMEPAGE_URI) {
return UrlHelper::siteUrl('', $params, null, $this->siteId);
}

return UrlHelper::siteUrl($this->uri, $params, null, $this->siteId);
}
}

0 comments on commit 385ab48

Please sign in to comment.