diff --git a/src/view/frontend/templates/ff/communication.phtml b/src/view/frontend/templates/ff/communication.phtml index 938aa33f..3ef59a0c 100644 --- a/src/view/frontend/templates/ff/communication.phtml +++ b/src/view/frontend/templates/ff/communication.phtml @@ -46,7 +46,10 @@ $searchImmediate = $communicationParameters['search-immediate'] ?? 'false'; } isSsrEnable()): ?> - document.cookie = 'ffwebc_sid=' + factfinder.common.localStorage.getItem('ff_sid') + '; path=/;'; + const eventAggregator = factfinder.communication.EventAggregator; + eventAggregator.addBeforeDispatchingCallback(function (event) { + document.cookie = 'ffwebc_sid=' + factfinder.common.localStorage.getItem('ff_sid') + '; path=/;'; + }); if () {