Active
Project:
Organic Groups domain support
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2010 at 10:43 UTC
Updated:
7 Oct 2010 at 10:43 UTC
I have a node i want to display at the default/public domain (site1.com) and in 2 groups (site2.fr and site3.com).
The node is visible at site2.fr/node/3 and site3.com/node/3. OK.
But when i visit the URL site1.com/node/3, i am routed to site2.fr/node/3.
To prevent this, i added the following code at line 128 (just after if($current_domain === NULL) $current_domain = _og_domain_get_base_url_domain();) :
$default_domain = variable_get('og_domain_default_value', '');
if($current_domain == $default_domain && $node->og_public == true){
return $current_domain;
}
Hope this could help.