Gtk UI: Handle links in HTML shownotes

This commit is contained in:
Thomas Perl 2022-04-22 10:17:09 +02:00
parent 16777ba5eb
commit 3cbb36167c
1 changed files with 2 additions and 1 deletions

View File

@ -411,8 +411,9 @@ class gPodderShownotesHTML(gPodderShownotes):
if req.get_uri() in (self._base_uri, 'about:blank'):
decision.use()
else:
logger.debug("refusing to go to %s (base URI=%s)", req.get_uri(), self._base_uri)
# Avoid opening the page inside the WebView and open in the browser instead
decision.ignore()
util.open_website(req.get_uri())
return False
else:
decision.use()