                 load(url: url)
             }
         }
-        else {
-            if let url = enrollmentConfig?.webview.searchURL as URL? {
-                webviewHelper?.searchBaseURL = url
-                load(url: url, searchQuery: searchQuery, showBottomBar: showBottomBar, showSearch: true)
-            }
+        else if let url = enrollmentConfig?.webview.searchURL as URL? {
+            webviewHelper?.searchBaseURL = url
+            load(url: url, searchQuery: searchQuery, showBottomBar: showBottomBar, showSearch: true)
         }
         
     }

    func webViewContainingController() -> UIViewController {
        return self
    }
    
}

}

extension FindProgramsViewController: WebViewNavigationDelegate {
    
    func webView(_ webView: WKWebView, shouldLoad request: URLRequest) -> Bool {
        guard let url = request.url else { return true }
        DiscoveryHelper.navigate(to: url, from: self, bottomBar: bottomBar)
