diff --git a/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabActivity.kt b/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabActivity.kt index efa48a53f..b2dd5a8e4 100644 --- a/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabActivity.kt +++ b/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabActivity.kt @@ -52,7 +52,10 @@ open class CustomTabActivity : HomeActivity() { // then there's no way to get back to it other than relaunching it. val sessionId = getIntentSessionId(SafeIntent(intent)) components.core.sessionManager.runWithSession(sessionId) { session -> - remove(session) + // If the custom tag config has been removed we are opening this in normal browsing + if (session.customTabConfig != null) { + remove(session) + } true } }