Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have 2 node (node/6 - eng, node/1 - rus). Both alias - home and this alias = site_frontpage.
site default language = english.
If i try get site from proxy (example germany i redirected to http://..../en/node/1) ?
Why?
I need http://.../en/home or en/node/6
Comments
Comment #1
wowik73 CreditAttribution: wowik73 commentedin geoip_language.module
// Now that the language is detected, do an absolute redirect to avoid page
// caching in the wrong language.
$url = url($_GET['q'], array('language' => $language, 'absolute' => TRUE, 'query' => drupal_query_string_encode($_GET, array('q'))));
$GET['q'] = node/1 (why not node/6) ?
$language->language = 'en'
Comment #2
wowik73 CreditAttribution: wowik73 commentedI change code
+ $_GET['q'] = variable_get('site_frontpage', 'node');
$url = url($_GET['q'], array('language' => $language, 'absolute' => TRUE, 'query' => drupal_query_string_encode($_GET, array('q'))));
Comment #3
bojanz CreditAttribution: bojanz at Centarro commented