Skip to content

Commit

Permalink
Fix #71 bug with frontend referrer
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 2, 2024
1 parent a5effeb commit e959eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BackendHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function storeFrontendReferrer()
if (System::getContainer()->get('request_stack')->getCurrentRequest()->get('_contao_referer_id') && !Input::get('ref')) {

$referrer = substr($referrer, strlen(System::getContainer()->get('request_stack')->getCurrentRequest()->getBasePath()) + 1);
$tlRefererId = substr(md5(System::getContainer()->get('kernel')->getStartTime() - 1), 0, 8);
$tlRefererId = System::getContainer()->get('request_stack')->getCurrentRequest()->attributes->get('_contao_referer_id');
$referrerSession[$tlRefererId]['current'] = $referrer;
Input::setGet('ref', $tlRefererId);
$requestUri = Environment::get('requestUri');
Expand Down

0 comments on commit e959eed

Please sign in to comment.