Closed (fixed)
Project:
Domain
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Apr 2008 at 13:44 UTC
Updated:
4 May 2008 at 22:52 UTC
settings_domain_prefix.inc does not include the logic for removing the www prefix from a hostname -- as controlled by the settings for the main module.
And settings_domain_conf.inc needs to be tested to ensure that featuer works correctly, since the variables array may not be available that early in the bootstrap process.
THis applies to 5.x and 6.x
Comments
Comment #1
agentrickardIt may also be that the logic in domain_init() is incorrect. Specifically.
Comment #2
fool2 commentedIt needs to be processed before domain_prefix.... this is breaking my sites because we use url aliases as a prefixed table.
I don't think variable_get() is available in settings_domain_prefix.inc-- meaning this is unfixable without adding a config line to settings.php. Since we already have to modify settings.php for it anyway, this shouldn't be a problem. hook_init() just isn't going to cut it though
I also think that even if we COULD use variable_get in settings, there would be the opportunity for a logical loop because the variable table could depend on the domain prefix, which would depend on the variable table and so on
I couldn't see any problems with the code you've referenced above.
Comment #3
agentrickardRight. The other fix is to put a redirect inside domain_init() that sends people from www.example.com to example.com. This approach is the simpler fix, since it only requires one change -- and it is one that I control.
Comment #4
agentrickardFixed in 5.x.1.4 and 6.x
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.