Developer forum

Forum » Swift » Swift Sitemap for Multi domain websites in language layers

Swift Sitemap for Multi domain websites in language layers

Davy Capiau
Reply

Hi,

Within our webshop we defined 5 language layers. The fifth one uses another domain.

When rendering the sitemap.xml (used from SWIFT services), it will render the url's from the fifth store with the primary domain of the first ones.

Example:

<loc>chemicar.staging.dynamicweb-cms.com/en-us/products</loc>
 
Instead of
 
<loc>finixastag.ewings.be/en-us/products</loc>

Furthermore the fifth one will generate a sitemap with url's of the first four. It shouldn't create any, except from it's own domain and language layer.

Example:

<loc>finixastag.ewings.be/en-uk/products</loc>
How do we adjust the template to handle this? Or is there any other way?

/Templates/Designs/Swift/Swift_Sitemap.xml.cshtml 


Replies

 
Davy Capiau
Reply

Additionally I see that it also generates a url for the DAM from a specific e-commerce group, while it doesn't exist in the DB. 

It seems like the SWIFT template generates a url-copy for every language layer

 

This does exist:

<loc>domain.com/en-uk/paint-preparation-application</loc>

This doesn't:

<loc>domain.com/digital-assets-portal/paint-preparation-application</loc>

 

You must be logged in to post in the forum