Skip to content

Commit

Permalink
Return $tags when route is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Apr 24, 2020
1 parent 924b5ab commit 94e647c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Features/TelescopeTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public function bootstrap(TenantManager $tenantManager): void
Telescope::tag(function (IncomingEntry $entry) {
$tags = $this->getTags($entry);

if (! request()->route()) {
return $tags;
}

$tenantRoute = PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'tenancy')
|| PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'universal');

Expand Down

0 comments on commit 94e647c

Please sign in to comment.