Alright first thing first this is a fantastic module and I appreciate all that has gone into making it happen!
Second .. here's my situation and I can't figure out for the life of my why this bug is happening...
My setup
* DomainEnglish.ca - Set to use English as default
* DomainFrancais.ca - Set to use French as default
* Frontpage for both is simply /node which is ignored and blocks are presented
* All content is sent to all Affiliates because it was the only way to get the language switcher to point to the other domains
Whats working
* Can switch between domains based on language switcher
* Content is using proper default language
My bug
1. Turning on page caching for anonymous users
2. Suddenly the frontpage of either DomainEnglish or DomainFrancais is a duplicate of the other (meaning that they don't show their proper default language).
3. Viewing any other page besides the front and the proper language is displayed and can be switched to the other domain with the language switcher
4. Setting a fake //home// page does not work for the page but does work when viewing the actual page /fakehome
Any suggestions? Could this be some random bug in the way that Drupal caching is storing the information... I would reeeeeeally like to fix this and the turn caching back on :/
Comments
Comment #2
shaneonabike commentedSo I finally figured out what was happening. I never tested this directly with Drupal's caching but was having the same issue with Boost.
Essentially having set the
$base_urlmeans that the URL never was replaced. Thus all the modules relying on that path would use the primary URL. This is what lead to all the issues. Commenting this value out in settings.php means that I was able to cache things properly.I don't know if that's a bug or not but might be helpful to others.
Comment #3
agentrickardGlad you found the answer you need.
That's a known limitation. Domain Access rewrites $base_url, which is noted in INSTALL.txt.