Closed (fixed)
Project:
Multiple Domains
Version:
5.x-1.x-dev
Component:
url rewrite functionality
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 May 2007 at 23:31 UTC
Updated:
18 May 2007 at 00:07 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| multidomain-node-types.patch | 763 bytes | nedjo |
Comments
Comment #1
nedjoApplied.
Comment #2
(not verified) commented