Skip to content

Commit

Permalink
Pull tagmanager session after set
Browse files Browse the repository at this point in the history
  • Loading branch information
tjardoo committed Feb 1, 2023
1 parent 7939215 commit 6560895
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Http/Middleware/TagManagerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function handle(Request $request, Closure $next)
{
if ($this->session->has(config('tagmanager.session_name'))) {
$this->tagManager->set($this->session->get(config('tagmanager.session_name')));

$this->session->pull(config('tagmanager.session_name'));
}

$response = $next($request);
Expand Down

0 comments on commit 6560895

Please sign in to comment.