A/B Testing Addon and Content Versions

Vote:
 

Hello,

We are on Episerver.CMS 11.20.5 and attempting to use Episerver.Marketing.Test 2.6.6, but I've noticed some unexpected side effects.

We have a language bar which allows you to switch to the version of the page in other languages and have the following code to determine the languages to show:

var existingPages = page.ExistingLanguages
                                    .Select(l => contentLoader.Get<PageData>(page.ContentLink.ToReferenceWithoutVersion(), l))
                                    .Where(p => p.Status == VersionStatus.Published);

We then use this to create a language specific URL so we can link to the page in other languages. The problem is that if you have an A/B test running for a page, it seems to technically be considered "Published", and this code returns English versions of the page only. English is the version associated with the current test.

Does anyone have any recommendations for how to identify the ExistingLanguages that are actually published when you are currently conducting an A/B test? Please let me know if you need more information.

#253655
Edited, Apr 20, 2021 17:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.