{
"__version" : "1",
"settings" : {
"http-host" : "<yourhostname>",
"https-host" : "<yourhostname>",
"site-path" : "SG",
"default" : "true"
}
}
and
{
"__version" : "1",
"settings" : {
"http-host" : "<yourhostname>",
"https-host" : "<yourhostname>",
"site-path" : "DE",
"default" : "false"
}
}
<isscript>
var langurl: String = "";
var params: Array;
params = [];
params.push( dw.web.URLParameter("cid", request.httpParameters["cid"][0]) );
langurlSG = URLUtils.abs(new dw.web.URLAction("Page-Show", "SiteGenesis"), params);
langurlDE = URLUtils.abs(new dw.web.URLAction("Page-Show", "DE"), params);
</isscript>
<link rel="alternate" hreflang="default" href="${langurlSG}" />
<link rel="alternate" hreflang="default" href="${langurlDE}" />
[ [ folder ] , / , [ attribute, name, noname ] ]
calling from DE <link rel="alternate" hreflang="default" href="https://<yourhostname>/SG/privacy%20policy/privacy-policy.html" /> <link rel="alternate" hreflang="default" href="https://<yourhostname>/DE/customer%20service/privacy%20%26%20security/privacy%20policy/privacy-policy.html" /> calling from SG <link rel="alternate" hreflang="default" href="https://<yourhostname>/SG/customer%20service/privacy%20%26%20security/privacy%20policy/privacy-policy.html" /> <link rel="alternate" hreflang="default" href="https://<yourhostname>/DE/privacy%20policy/privacy-policy.html" />
Content URL rule needs to be set to
[ [ folder, [ folder-parent, [ attribute, displayName], / ] ], / , [ attribute, name, noname ] ]
With this setup the urls are now looking identical
<link rel="alternate" hreflang="default" href="https://<yourhostname>/SG/customer%20service/privacy%20%26%20security/privacy%20policy/privacy-policy.html" /> <link rel="alternate" hreflang="default" href="https://<yourhostname>/DE/customer%20service/privacy%20%26%20security/privacy%20policy/privacy-policy.html" />
000391363

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.