I've setup a two-domain configuration, secondary domain has a separate site name, as I configured at admin/build/domain/edit/2.

It works for all the pages of the secondary domain except the front page, title shown where is from the primary domain.

What's the probable reason for this behavior?

Comments

agentrickard’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

There are a couple of options:

1) Something else -- typically Panels, Views or i18n -- is overwriting the title. May not be relevant in your case.

2) The home page is actually loading the primary domain, due to misconfiguration of the DNS. You can use the Server info block provided by the module to debug.

akamaus’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Active

Thanks for attention!

1) Something else -- typically Panels, Views or i18n -- is overwriting the title. May not be relevant in your case.

Ordinal node was selected as a front page. It's assigned to second domain. Panels and i18n aren't installed on the site.

2) The home page is actually loading the primary domain, due to misconfiguration of the DNS. You can use the Server info block provided by the module to debug.

I added the block, on all the pages of the second domain including the front page it shows the correct information.

Also I made a quick experiment. I temporarily switched a front page fron node A to node B. Guess what? Now title is correct on the node A and incorrect on node B. It doesn't matter how to access the node, as / or node/[nid].

Any further thoughts/suggestions?

agentrickard’s picture

The "incorrect" title is the site name, not the node title? Is that the problem? I'm not clear on what's actually wrong here.

akamaus’s picture

The page title as displayed by my browser is of the form
[Node title] | [Site name] - Mozilla Firefox
Page titles are the same for frontpages of two domains for some reason. The actual node titles and site names configured differently of course.

agentrickard’s picture

Category: bug » support

Odd. And this happens for logged in and anonymous users?

I doubt this is actually coming from DA -- it sounds more like a caching issue -- and I have no way to replicate.

Typically, the home page of a Drupal site will only print [site name]. How are you getting it to print [node title]?

akamaus’s picture

> Odd. And this happens for logged in and anonymous users?

for both.

> I doubt this is actually coming from DA -- it sounds more like a caching issue --

I tried disabled caching altogether, nothing changes, really.

> and I have no way to replicate.

I can make the investigation myself. Just give some hints on where to look :)

> Typically, the home page of a Drupal site will only print [site name]. How are you getting it to print [node title]?

Well, I believe you're missing something. Just look at http://drupal.org for example :) All my D6 sites have [Title] | [site name] in a title tag in html header.

agentrickard’s picture

Right! Is that the site slogan? When I add a slogan I get [sitename] | [slogan] for the homepage.

The Domain Conf module allow you to set domain-specific slogans.

akamaus’s picture

Status: Active » Closed (works as designed)

Oh, thanks for your questions :)

My bad! Site had a page_title module installed. It has been replacing title of the front page and was configured identically for both domains.