We are experiencing a few bugs when working with domain prefixes. It might be features, but it looks like bugs to us.
We want a site with several languages and each language must have one or more domains attached. Our first problem is that the links under properties not are consistent. We have changed the umbracoSettings.config like this: <useDomainPrefixes>true</useDomainPrefixes> Look at these screenshots from our setup where we have two languages and domains pointing to them.
The danish root page
The english root page
A danish level 2 page. Why are there a "no domain" link here? useDomainPrefixes=true should see to that only the chosen domains can be shown here. Or not?
Same problem with a dansih level 3 page.
English level 2 page. Everything looks just right here.
English level 3 page. Now the problem is back. Why is there no concistency in the links?
So what links are correct and which are not?
Another related problem from the same website. I have filled out the errors section of umbracoSettings.config like so: <errors> <!-- the id of the page that should be shown if the page is not found --> <error404 culture="da-DK">1063</error404> <error404 culture="en-US">1066</error404> <error404>1066</error404> </errors>
This just does'nt work, as I allways get the da-DK 404 page, no matter wich language Im on. If I change it like this: <errors> <!-- the id of the page that should be shown if the page is not found --> <error404 culture="en-US">1066</error404> <error404 culture="da-DK">1063</error404> <error404>1066</error404> </errors>
As soon as you setup hostnames, umbracoHideTopLevelNodeFromPath is ignored.
Having two urls for the same page is not really supported. Nor is it a good idea. If you want to have the english site as the default one, and the french one under /fr, here's what I'd do in 4.10:
Content - English (hostname: sitename.com, lang: english) - - english pages... - - French (hostname: sitename.com/fr, lang:french) - - - french pages
And in 4.11.1
Content - English (hostname: sitename.com, lang: english) - - english pages... - - French (hostname: *, lang: french) - - - french pages
Bugs in domain prefixes
Hi,
We are experiencing a few bugs when working with domain prefixes. It might be features, but it looks like bugs to us.
We want a site with several languages and each language must have one or more domains attached. Our first problem is that the links under properties not are consistent. We have changed the umbracoSettings.config like this:
<useDomainPrefixes>true</useDomainPrefixes>
Look at these screenshots from our setup where we have two languages and domains pointing to them.
The danish root page
The english root page
A danish level 2 page. Why are there a "no domain" link here? useDomainPrefixes=true should see to that only the chosen domains can be shown here. Or not?
Same problem with a dansih level 3 page.
English level 2 page. Everything looks just right here.
English level 3 page. Now the problem is back. Why is there no concistency in the links?
So what links are correct and which are not?
Another related problem from the same website. I have filled out the errors section of umbracoSettings.config like so:
<errors>
<!-- the id of the page that should be shown if the page is not found -->
<error404 culture="da-DK">1063</error404>
<error404 culture="en-US">1066</error404>
<error404>1066</error404>
</errors>
This just does'nt work, as I allways get the da-DK 404 page, no matter wich language Im on. If I change it like this:
<errors>
<!-- the id of the page that should be shown if the page is not found -->
<error404 culture="en-US">1066</error404>
<error404 culture="da-DK">1063</error404>
<error404>1066</error404>
</errors>
The en-US 404 page is shower every time.
I hope someone can shead some light on this.
/Rune
A bit late but the section should look something like this to work, also a IIS restart is good for getting it going.
Hope this helps someone, i have been struggling with it for a couple of hours.
/Jonathan
We are trying a similar solution with multilingual sites.
Did you got and good working solutions ?
after changing <useDomainPrefixes>true</useDomainPrefixes> all sub pages keep throwing 404
@Manish: what version are you running? Also do you have issues with the urls or with the 404 handler?
I'm running 4.10 version , and also no issue with the 404 handler.
The sub pages throwing 404
A little more about the structure I followed for multilingual site , under content is like below
content
|--- English (hostname {sitename}.com/en)
-- sub pages (
link -- {sitename}.com/en/[subpagename}
Alternatelink -- -- {sitename}.com/en/{subpagename}
)
|--- French (hostname {sitename}.com/fr)
-- sub pages (
link -- {sitename}.com/fr/[subpagename}
Alternatelink -- -- {sitename}.com/fr/{subpagename}
)
So if I understand correctly when you browse to sitename.com/en/subpage you get a 404 instead of a page?
correct.
changing umbracoHideTopLevelNodeFromPath will be of any help in this issue?
Also I want to run the english site at the root node , E.g sitename.com/en/subpage and sitename.com/subpage should server the same page.
Is it possible ?
As soon as you setup hostnames, umbracoHideTopLevelNodeFromPath is ignored.
Having two urls for the same page is not really supported. Nor is it a good idea. If you want to have the english site as the default one, and the french one under /fr, here's what I'd do in 4.10:
Content
- English (hostname: sitename.com, lang: english)
- - english pages...
- - French (hostname: sitename.com/fr, lang:french)
- - - french pages
And in 4.11.1
Content
- English (hostname: sitename.com, lang: english)
- - english pages...
- - French (hostname: *, lang: french)
- - - french pages
Thanks for your guidance. It was really helpful.
is working on a reply...