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

wowik73’s picture

in 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'

wowik73’s picture

I 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'))));

bojanz’s picture

Issue summary: View changes
Status: Active » Closed (outdated)