Closed (works as designed)
Project:
Domain
Version:
6.x-2.14
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2012 at 14:10 UTC
Updated:
14 Jun 2012 at 10:00 UTC
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
Comment #1
agentrickardThere 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.
Comment #2
akamaus commentedThanks 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?
Comment #3
agentrickardThe "incorrect" title is the site name, not the node title? Is that the problem? I'm not clear on what's actually wrong here.
Comment #4
akamaus commentedThe 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.
Comment #5
agentrickardOdd. 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]?
Comment #6
akamaus commented> 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.
Comment #7
agentrickardRight! 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.
Comment #8
akamaus commentedOh, 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.