From cea18f31c460fa0c2d2c4dd622b0e9f708f8413d Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Thu, 29 Aug 2019 13:27:50 -0700 Subject: [PATCH] For #3892: Fixes help link on nightly (#4956) --- app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt b/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt index 4d8532320..54c6699b7 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt @@ -34,7 +34,8 @@ object SupportUtils { fun getSumoURLForTopic(context: Context, topic: SumoTopic): String { val escapedTopic = getEncodedTopicUTF8(topic.topicStr) - val appVersion = getAppVersion(context) + // Remove the whitespace so a search is not triggered: + val appVersion = getAppVersion(context).replace(" ", "") val osTarget = "Android" val langTag = getLanguageTag(Locale.getDefault()) return "https://support.mozilla.org/1/mobile/$appVersion/$osTarget/$langTag/$escapedTopic"