Currently all node urls are rewritten to the first non-master domain.

The problem: In the matching of paths by node type, we need an additional test. The current test is this:


$page_match = in_array($node->type, array_keys($info['types']));

The problem is that the 'types' array there has keys for all node types (that existed when the master domain configuration form was submitted). We need to make sure that, as well as existing, the value is set to 1 and not 0. So the line needs to be:


$page_match = in_array($node->type, array_keys($info['types']) && $info['types'][$node->type]);

Patch attached.

CommentFileSizeAuthor
multidomain-node-types.patch763 bytesnedjo

Comments

nedjo’s picture

Status: Active » Fixed

Applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)