Skip to content

Commit f49240b

Browse files
committed
Merge branch 'release/45.0.0' into master
2 parents af257a9 + f4b0838 commit f49240b

13 files changed

Lines changed: 61 additions & 21 deletions

File tree

‎Configuration/Icons.php‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?php
22

33
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
4+
use TYPO3\CMS\Core\Information\Typo3Version;
5+
use TYPO3\CMS\Core\Utility\GeneralUtility;
6+
7+
// Todo: Remove once TYPO3 13 support is dropped
8+
$moduleIconSuffix = GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() === 13 ? '_v13' : '';
49

510
return [
611
'extension-lux-module' => [
@@ -17,15 +22,15 @@
1722
],
1823
'extension-lux-module-analysis' => [
1924
'provider' => SvgIconProvider::class,
20-
'source' => 'EXT:lux/Resources/Public/Icons/lux_module_analysis.svg',
25+
'source' => 'EXT:lux/Resources/Public/Icons/lux_module_analysis' . $moduleIconSuffix . '.svg',
2126
],
2227
'extension-lux-module-lead' => [
2328
'provider' => SvgIconProvider::class,
24-
'source' => 'EXT:lux/Resources/Public/Icons/lux_module_lead.svg',
29+
'source' => 'EXT:lux/Resources/Public/Icons/lux_module_lead' . $moduleIconSuffix . '.svg',
2530
],
2631
'extension-lux-module-workflow' => [
2732
'provider' => SvgIconProvider::class,
28-
'source' => 'EXT:lux/Resources/Public/Icons/lux_module_workflow.svg',
33+
'source' => 'EXT:lux/Resources/Public/Icons/lux_module_workflow' . $moduleIconSuffix . '.svg',
2934
],
3035
'extension-lux-star' => [
3136
'provider' => SvgIconProvider::class,

‎Documentation/Technical/Campaigns/AbTesting.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ Buttons allows you to change to edit view of a page or to pageoverview module wi
6060

6161
##### Technical notes
6262

63+
###### Cookie and consent
64+
65+
The selected variant is stored in a session cookie with name `LUXABTEST` (value `A`, `B`, etc.) to show the same
66+
variant on further page visits. This cookie is set by LUX JavaScript only if tracking is active (autoenable or opt-in).
67+
Without consent, a variant is shown, but no cookie is set - so a visitor could see another variant on the next page
68+
visit.
69+
6370
###### Enforce a variant
6471

6572
You can simply add a new (or rename an existing) cookie with name `LUXABTEST` and set the value to `A` or `B` etc.

‎Documentation/Technical/Changelog/Index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
| Version | Date | State | TYPO3 | Description |
1111
|------------|------------|----------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
12+
| 45.0.0 | 2026-10-30 | Feature | `v13 + v14` | Set A/B testing cookie via JavaScript only with consent (needed for LUX Enterprise), Update LUX module icons for TYPO3 14 (old icons for TYPO3 13) |
1213
| 44.4.2 | 2026-10-29 | Task | `v13 + v14` | Add documentation about timeout for A/B testing variants, Update GitHub workflows (ubuntu-26.04, actions/checkout v6) |
1314
| 44.4.1 | 2026-10-01 | Bugfix | `v13 + v14` | Remove `config.linkVars=luxContent` to prevent cache poisoning |
1415
| 44.4.0 | 2026-10-01 | Feature | `v13 + v14` | Commands can be used with specific rootPageId now, Add speaking exception for missing config in commands, Performance improvement for summary command, Bugfix for lastPageVisit Count, Add MCP documentation (tools) |

‎Resources/Private/Build/JavaScript/Frontend/Lux.js‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ function LuxMain() {
636636
addLinkListenerListener();
637637
addRedirectListener();
638638
addAbTestingListener();
639+
setAbTestingCookie();
639640
} else {
640641
trackIteration++;
641642
if (trackIteration < 200) {
@@ -843,6 +844,21 @@ function LuxMain() {
843844
}
844845
};
845846

847+
/**
848+
* Remember the A/B testing variant in a session cookie (only called with an active tracking/consent)
849+
*
850+
* @returns {void}
851+
*/
852+
var setAbTestingCookie = function() {
853+
var abTestingContainer = document.querySelector('[data-lux-abtestingvariant]');
854+
if (abTestingContainer !== null && document.cookie.split('; ').some(function(cookie) {
855+
return cookie.indexOf('LUXABTEST=') === 0;
856+
}) === false) {
857+
document.cookie = 'LUXABTEST=' + abTestingContainer.getAttribute('data-lux-abtestingvariant')
858+
+ '; path=/; SameSite=Strict';
859+
}
860+
};
861+
846862
/**
847863
* Delay a click to a link to give AJAX some time to do a bit magic
848864
*
Lines changed: 3 additions & 6 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 3 additions & 4 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 2 additions & 4 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)