Skip to content

Commit

Permalink
only watch the request path for the backend route param, not the whol…
Browse files Browse the repository at this point in the history
…e url
  • Loading branch information
davidporos92 committed Jun 20, 2018
1 parent 18e0817 commit b49c130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Core/Providers/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public function bladeDirectives()
*/
private function onBackend()
{
$url = app(Request::class)->url();
$url = app(Request::class)->path();
if (str_contains($url, config('asgard.core.core.admin-prefix'))) {
return true;
}
Expand Down

0 comments on commit b49c130

Please sign in to comment.