You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The menu active state is not working correctly on all platforms.
This is because the 'active state' is based upon the 'server name' ($_SERVER['SERVER_NAME']) which is quite different than the hostname for the request. For example, the server name may be 'phpfpm.docker.local' while the domain names may of course be different.
Changing in v4.0, in services/OlivemenusService.php
The menu active state is not working correctly on all platforms.
This is because the 'active state' is based upon the 'server name' ($_SERVER['SERVER_NAME']) which is quite different than the hostname for the request. For example, the server name may be 'phpfpm.docker.local' while the domain names may of course be different.
Changing in v4.0, in services/OlivemenusService.php
line 212
$current_active_url = Craft::$app->request->getServerName() . Craft::$app->request->getUrl();
to
$current_active_url = Craft::$app->request->getHostName() . Craft::$app->request->getUrl();
would fix this.
The text was updated successfully, but these errors were encountered: