diff --git a/qutebrowser/browser/webpage.py b/qutebrowser/browser/webpage.py index 2203ae18c..cd77a1090 100644 --- a/qutebrowser/browser/webpage.py +++ b/qutebrowser/browser/webpage.py @@ -535,6 +535,7 @@ class BrowserPage(QWebPage): message.error(self._win_id, "Invalid link {} clicked!".format( urlstr)) log.webview.debug(url.errorString()) + self.open_target = usertypes.ClickTarget.normal return False tabbed_browser = objreg.get('tabbed-browser', scope='window', window=self._win_id) @@ -546,6 +547,7 @@ class BrowserPage(QWebPage): target = self._hint_target else: target = self.open_target + self.open_target = usertypes.ClickTarget.normal if target == usertypes.ClickTarget.tab: tabbed_browser.tabopen(url, False) return False