Skip to content

Commit

Permalink
visitor full url and full uri
Browse files Browse the repository at this point in the history
  • Loading branch information
zafranf committed May 27, 2021
1 parent e83eff4 commit c0f7f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Http/Middleware/VisitorLogMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function visitorLog()

/* set variable */
$ip = getUserIP();
$page = isAdminSubdomain() ? \Request::fullUrl() : (\Request::path() ?? '-');
$page = isAdminSubdomain() ? \Request::fullUrl() : (\Request::getRequestUri() ?? '-');
$referrer = \Request::server('HTTP_REFERER') ?? null;
$referrer = str_replace(_url('/'), "", $referrer);
$agent = new \Jenssegers\Agent\Agent();
Expand Down

0 comments on commit c0f7f3f

Please sign in to comment.