Skip to content

Commit

Permalink
Merge pull request #13588 from smiliyas/fix/non-auth-panel-infinite-r…
Browse files Browse the repository at this point in the history
…edirect-loop

fix: allow to access default page for non-auth panel
  • Loading branch information
danharrin authored Jul 17, 2024
2 parents 0113c83 + 877b6eb commit 1defb64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/panels/src/Panel/Concerns/HasRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ public function getPath(): string

public function getUrl(?Model $tenant = null): ?string
{
if (! $this->auth()->check()) {
return $this->hasLogin() ? $this->getLoginUrl() : url($this->getPath());
if ((! $this->auth()->check()) && $this->hasLogin()) {
return $this->getLoginUrl();
}

$hasTenancy = $this->hasTenancy();
Expand Down

0 comments on commit 1defb64

Please sign in to comment.