cancel
Showing results for 
Search instead for 
Did you mean: 

Multi country site in CDC with Multi Brand

krishnakumar_1712
Participant
0 Kudos

Hi Team,

Problem Statment.:

Our Customer Has 2 Brands

  • Brand A
  • Brand B

Each brand has multi-country support. i.e,

  • Brand A

eu.brandA.com

us.brandA.com

  • Brand B

eu.brandB.com

us.brandB.com

Customers for both Brand A and Brand B are common.

Hence I designed the website hierarchy in CDC as Below.

>> Parent Brand

Brand A

Brand B

Now My problem Is, We have common attributes like " Customize redirection URL: " for email verification or double opt-in verification. How can we use region-specific " Customize redirection URL: "

That is if a user verified from eu.brandA.com, Then the user should be redirected to eu.brandA.com home page after verification and if a user verified from us.brandA.com, Then the user should be redirected to eu.brandA.com home page after verification

Any help will be appriciable

Accepted Solutions (1)

Accepted Solutions (1)

olehi941
Active Participant

Hi Eldhos,

A few years ago we had to implement something similar. We had a parent site, under parent 4-5 child sites that share the same customers, but at the same time have to lead to different URLs based on locale or some link.
Your case is pretty similar.

You need to set some configurations on each of CDC child sites, which are not accessible from UI Console.

Please call accounts.setPolicies REST endpoint with the following parameter -> emailVerification.
Request example ->

{
  "nextURLMapping": [
    {
      "regSource": "*en.html",
      "nextURL": "https://my-site.com/en/email-activated.html"
    },
    {
      "regSource": "*/en/*",
      "nextURL": "https://my-site.com/en/email-activated.html"
    },
    {
      "regSource": "*fr.html",
      "nextURL": "https://my-site.com/fr/email-activated.html"
    },
    {
      "regSource": "*/fr/*",
      "nextURL": "https://my-site.com/fr/email-activated.html"
    }
  ]
}

regSource may end with * for a prefix match, or begin and end with * for any partial match, or it may not contain any * for an exact match. It may also be in the format of "regex(....)", in which case the regex is matched against the regSource.
If no regSource matches, then the value of emailVerification.nextURL is used as the default fallback(This one which you can configure from the UI Console -> Identity Verification -> Customize Redirection URL).

Hope it helped you.

krishnakumar_1712
Participant
0 Kudos

Hi Oleh,

Can you help me to understand, What Is: regSource

And How can I use site-specific Customize redirection URL: for Double Optin confirmation emails?


Regards,

Eldhos

Answers (1)

Answers (1)

Kunal_Bansal
Active Contributor

Hi Eldhos,

I understand your usecase and would highly recommend you to handle your usecase on basis of Data Centers and then in Java Script, you can custom code that a user from eu.brand.com should also have access to us.brand.com.

Try setup like below:

brand.us.com - US DC

  • -us.site1
  • -us.site2
  • .....

brand.eu.com - EU DC

  • -eu.site1
  • -eu.site2
  • ....

I hope this will help your scenario.

Best Regards,

Kunal

olehi941
Active Participant

It could be a good option Kunal
I would like to be wrong, but looks like this approach doesn't meet the following -> "Customers for both Brand A and Brand B are common."

krishnakumar_1712
Participant
0 Kudos

Thank you for response.

This approach we thought about this, But, It won't help us for: "Customers for both Brand A and Brand B are common."