Skip to content

Commit

Permalink
return default page url for non-auth panel
Browse files Browse the repository at this point in the history
  • Loading branch information
smiliyas committed Jul 16, 2024
1 parent 4403403 commit 109c1ae
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 109c1ae

Please sign in to comment.