Links to full versions of posts go to incorrect subdomain.

jheiv - March 11, 2008 - 05:42
Project:Multiple Domains
Version:5.x-1.x-dev
Component:url rewrite functionality
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Although the themes work correctly, when you click on the title link in any story post, it redirects you to an incorrect subdomain.

Checkout http://projects.jheiv.com -- click any subdomain and watch it link to http://blog.jheiv.com

I patched and double checked, Any ideas?

#1

jheiv - March 11, 2008 - 05:42

I meant:
Checkout http://projects.jheiv.com -- click any post title and watch it link to http://blog.jheiv.com

#2

jheiv - March 26, 2008 - 08:59

I found a temporary workaround:

Around Line 690 of multidomain.module I changed

      if ($page_match) {
        $base = $domain;
        break;
      }

to
      if ($page_match) {
        $base = 'http://' . $_SERVER['HTTP_HOST'];
        break;
      }

... it was doing a terrible job of matching the domain.

#3

betz - November 4, 2008 - 06:57

There is no further development of this module, but there are other modules that do the same and are alive.
Like this one http://drupal.org/project/domain

#4

betz - November 4, 2008 - 06:57
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.