diff --git a/app/src/main/java/org/mozilla/fenix/home/privatebrowsing/controller/PrivateBrowsingController.kt b/app/src/main/java/org/mozilla/fenix/home/privatebrowsing/controller/PrivateBrowsingController.kt index cd96f2563..56cd4d419 100644 --- a/app/src/main/java/org/mozilla/fenix/home/privatebrowsing/controller/PrivateBrowsingController.kt +++ b/app/src/main/java/org/mozilla/fenix/home/privatebrowsing/controller/PrivateBrowsingController.kt @@ -41,8 +41,11 @@ class DefaultPrivateBrowsingController( ) : PrivateBrowsingController { override fun handleLearnMoreClicked() { + val learnMoreURL = SupportUtils.getGenericSumoURLForTopic(SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS) + + "?as=u&utm_source=inproduct" + activity.openToBrowserAndLoad( - searchTermOrURL = SupportUtils.getGenericSumoURLForTopic(SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS), + searchTermOrURL = learnMoreURL, newTab = true, from = BrowserDirection.FromHome, ) diff --git a/app/src/test/java/org/mozilla/fenix/home/privatebrowsing/DefaultPrivateBrowsingControllerTest.kt b/app/src/test/java/org/mozilla/fenix/home/privatebrowsing/DefaultPrivateBrowsingControllerTest.kt index 90e669117..2b1bd8cee 100644 --- a/app/src/test/java/org/mozilla/fenix/home/privatebrowsing/DefaultPrivateBrowsingControllerTest.kt +++ b/app/src/test/java/org/mozilla/fenix/home/privatebrowsing/DefaultPrivateBrowsingControllerTest.kt @@ -27,7 +27,6 @@ import org.mozilla.fenix.components.appstate.AppState import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.settings import org.mozilla.fenix.home.privatebrowsing.controller.DefaultPrivateBrowsingController -import org.mozilla.fenix.settings.SupportUtils import org.mozilla.fenix.utils.Settings class DefaultPrivateBrowsingControllerTest { @@ -60,12 +59,13 @@ class DefaultPrivateBrowsingControllerTest { @Test fun `WHEN private browsing learn more link is clicked THEN open support page in browser`() { + val learnMoreURL = "https://support.mozilla.org/en-US/kb/common-myths-about-private-browsing?as=u&utm_source=inproduct" + controller.handleLearnMoreClicked() verify { activity.openToBrowserAndLoad( - searchTermOrURL = SupportUtils.getGenericSumoURLForTopic - (SupportUtils.SumoTopic.PRIVATE_BROWSING_MYTHS), + searchTermOrURL = learnMoreURL, newTab = true, from = BrowserDirection.FromHome, )