From f348878b1eba2d33e74cc08ab2635c6539905bd9 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Tue, 25 May 2021 15:42:42 -0700 Subject: [PATCH] Archive.today opens in new tab --- App/Browser View/BrowserViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/Browser View/BrowserViewController.swift b/App/Browser View/BrowserViewController.swift index 6f08721..ac74c67 100644 --- a/App/Browser View/BrowserViewController.swift +++ b/App/Browser View/BrowserViewController.swift @@ -264,7 +264,8 @@ class BrowserViewController: UIViewController guard let currentURL = webView.url else { return } guard let archiveURL = URL(string: "https://archive.today/\(currentURL.absoluteString)") else { return } - tab.beginLoadingURL(archiveURL) + // Open in new tab: + createNewTab(withURL: archiveURL) documentControls.dismiss(animated: true, completion: nil) }, for: .touchUpInside)