Looks like if we have languages enabled by setting different domains (fx, solar.com, solar.de, solar.dk etc..) for different languages, then accessing generated sitemap fx., http://solar.com/sitemap.xml
we see such links:
http://default/http://solar.com/node/100
http://default/http://solar.com/node/101
http://default/http://solar.com/node/102
where "http://default" is the "Default base URL".
We would like to have this field not used if domains are set in language settings and also we would like to have different sitemaps for each language, so that:
http://solar.com/sitemap.xml - provides links to EN language content with domain http://solar.com
http://solar.de/sitemap.xml - provides links to DE language content with domain http://solar.de
etc..
Comments
Comment #2
evaldask CreditAttribution: evaldask at Adapt for Novasol commentedI've looked at the latest dev version - content urls were already fixed, but there's still an issue to get the sitemap.xml loaded with different language.
Trying to access DK version http://solar.dk/sitemap.xml Firefox shows:
Error loading stylesheet: An unknown error has occurred (805303f4)
http://solar.com/sitemap.xsl
Chrome displays white window.
Sitemaps were generated with admin in http://solar.com/admin/config/search/xmlsitemap
Sitemap is not loaded because http://solar.dk/sitemap.xml loads xml with this line
<?xml-stylesheet type="text/xsl" href="http://solar.com/sitemap.xsl"?>
it should be
<?xml-stylesheet type="text/xsl" href="http://solar.dk/sitemap.xsl"?>
I've added patch for that.
Comment #3
evaldask CreditAttribution: evaldask at Adapt for Novasol commentedComment #4
SylvainM CreditAttribution: SylvainM at Axess Open Web Services commentedAttached patch fixes paths
Comment #5
poukram CreditAttribution: poukram commentedthanks guys, the last patch with good paths works fine!
Comment #6
juampynr CreditAttribution: juampynr at Lullabot commentedCan we move this up so we call fromRoute just once?
Also, can you provide steps to reproduce this issue? With them we may be able to write a test that proves the bug.
Comment #7
juampynr CreditAttribution: juampynr at Lullabot commentedComment #8
hswong3i CreditAttribution: hswong3i commentedUpdate #4 patch via latest 8.x-1.x-dev
Comment #9
hswong3i CreditAttribution: hswong3i commentedI had been using this patch for more than a year and error gone as expected, should be good enough for RTBC?
Comment #10
alex_optim+1
Comment #11
pifagorComment #13
pifagorComment #14
hkirsman CreditAttribution: hkirsman commentedI have the latest dev version but the output of sitemap.xml is still:
Is this another bug?
Comment #15
hkirsman CreditAttribution: hkirsman commentedSorry, I have to set the domain from UI. Interesting.