I have a D7 site (7.15) in three languages (English, German & Chinese) with the following modules enabled:

Domain Access (7.x-3.4)
Pathauto (7.x-1.2)
Domain Path (7.x-1.0-beta3)
Internationalisation (7.x-1.7)

Without Domain path enabled I can create an article, perform node translations and the url alias remains intact.
e.g.:
sub1.mydomain.com/sport
sub1.mydomain.com/de/sport
sub1.mydomain.com/cn/sport

However when I then enable Domain path and set the domain paths for the English, German and Chinese article (Sport) I get a broken language system - articles of different langauges all appear in the menu together and the language switcher block no longer has an active tag on the languages, essentially rendering the translations useless.

If I start again and this time only add domain paths for the english content across domains it works, but then switching languages now shows node/id as the url
e.g.:
sub1.mydomain.com/sport
sub1.mydomain.com/de/node/4
sub1.mydomain.com/cn/node/5
sub2.mydomain.com/sport
sub2.mydomain.com/de/node/7
sub2.mydomain.com/de/node/8
etc, etc.

Many thanks.

Comments

avescodude’s picture

I've been doing some more tests on this and have the following observations:

With all modules enabled I set the url alias of my sport page to 'bobEN', 'bobDE' and 'bobCN' respectively.
On the English translation (node/1) I set the Domain specific path to 'bob';
On the German translation (node/34) I set the Domain specific path to 'bob';
On the Chinese translation (node/35) I set the Domain specific path to 'bob';

So from my homepage I click the Sport menu item - showing a url of 'sub1.mydomain.com/bob' and I get the english page. Perfect.

I hover over the language switcher block (which correctly shows English as the current active language) and note that German shows a url of sub1.mydomain.com/de/bob and that the Chinese shows sub1.mydomain.com/zh-hans/bob.

So from the English Sport page I click German and all the menu's change to show the correct items and headers, but the page content still shows the English page (node/1). The url address bar still shows 'sub1.mydomain.com/de/bob'.

Choosing Chinese instead shows the same results, all the rest of the blocks and menus change to simplified Chinese but the content displayed is still showing the English page (node/1).

Further testing shows that I can ignore the domain alias and type 'sub1.mydomain.com/de/bobde' and get the correct page shown with menus and block also switching.

Now when I ran this test first time I created the 3 domain specific paths in the order Chinese, German and English. Having run this again I did it in the order English, German and Chinese and every time I visited the Sport page it shows the chinese version (node/35). Running it again a third time with German being the last update and I always get the German page (node/34).

Many thanks,
AvescoDude

avescodude’s picture

Having removed and uninstalled Domain Path (7.x-1.0-beta3) I cleared caches, etc and then installed the latest dev version (7.x-1.x-dev) which seems to resolve my issue.

I have only tested this on a single domain copy, but will further test on my multiple domain site.

avescodude’s picture

Having tested thoroughly in 3 languages I can report that everything seems fine in 7.x-1.x-dev

agentrickard’s picture

Status: Active » Closed (duplicate)