From dd788e215cc83e75f594b7a721f6ebfb4d24f190 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 25 Sep 2023 23:16:04 +0100 Subject: [PATCH] Fix display of gramplet help URLs that start with "https://" A help_url starting with either "http://" or "https://" should be used as the full url to be displayed in the browser. Fixes #13039. --- gramps/gui/widgets/grampletbar.py | 2 +- gramps/gui/widgets/grampletpane.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/widgets/grampletbar.py b/gramps/gui/widgets/grampletbar.py index d58b6bd2914..5577fd66bbe 100644 --- a/gramps/gui/widgets/grampletbar.py +++ b/gramps/gui/widgets/grampletbar.py @@ -746,7 +746,7 @@ def handle_response(self, object, response): elif response == Gtk.ResponseType.HELP: # translated name: if self.gramplet.help_url: - if self.gramplet.help_url.startswith("http://"): + if self.gramplet.help_url.startswith(("http://", "https://")): display_url(self.gramplet.help_url) else: display_help(self.gramplet.help_url) diff --git a/gramps/gui/widgets/grampletpane.py b/gramps/gui/widgets/grampletpane.py index eeda34ae0fa..1c32dd44d14 100644 --- a/gramps/gui/widgets/grampletpane.py +++ b/gramps/gui/widgets/grampletpane.py @@ -288,7 +288,7 @@ def handle_response(self, object, response): elif response == Gtk.ResponseType.HELP: # translated name: if self.gramplet.help_url: - if self.gramplet.help_url.startswith("http://"): + if self.gramplet.help_url.startswith(("http://", "https://")): display_url(self.gramplet.help_url) else: display_help(self.gramplet.help_url)