Project:Multiple Domains
Version:5.x-1.x-dev
Component:url rewrite functionality
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

I have installed Multiple Domains to a site with several subdomains, using the All but default configuration. My goal was to separate content using subdomains, but have the master site carry all posts.

While posts are correctly shown on relevant subdomains, every link seems to point to the domain with the lowest weight, that is: every link in any post on the www.somedomain.com site points to blog.somedomain.com, the latter being the domain with the lowest taxonomy weight set.

Is this behavior expected or intended? How do I go about changing links to point to the relevant subdomain or, at the least, the master site.

Comments

#1

Whoops, sorry! Re-reading this I realized that instead of every link it should read: Edit, Comment and Read more links.

#2

I can confirm that we see the same behavior. I don't believe this is the proper behavior. It also manifests itself when you create content on one of the sites and it redirects you to the site with the lowest weight when you save it.

#3

I'm having the same issue as well.

#4

In the custom_url_rewrite method, we fixed this by keeping track of when we had a domain match earlier in the cycle and then we break out of the loop of domains when we hit the page match. What's happening here is that we're seeing a page match, but there's nothing to break out of the loop of the domains.

#5

Category:support request» bug report

@DZone.com

I'm interested to see your changes, could you post a patch?

#6

Title:Links point to wrong subdomain» MySQL query errors 'duplicate alias'

If you have some problems in MySQL queries while using multidomain with other modules, just rename the alias for MySQL queries from 'tn' to 'txn' (for example). I found this bug using multidomain with taxonomy_menu module.

#7

Status:active» closed (duplicate)

This is a duplicate of http://drupal.org/node/161087

nobody click here