If you access this site GCMC Advocacia you may notice that the menu will only change language if you double click on the flag. This is because the page is not running the script that loads the menu according to language the first time. I imagine it's something related to jQuery and AJAX, but I do not have enough experience to do the script. Can you help me please?
I'm using this PHP code:
$en = explode("/", $_SERVER['HTTP_REFERER']); $idioma = $en[4];
It is he who changes the language by popping the url and detecting if the '/en/'
string is in the url by doing so the menu changes language. I need to actually run the PHP script with every refresh, thus allowing immediate menu switching.