From 5e8977393735203cbf40e317e14f8ce61c2206f9 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Thu, 19 Jan 2023 19:39:25 +0100 Subject: [PATCH] Ladybird: Don't prepend 'about:' urls with an http:// scheme --- Ladybird/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index c60b0aed9b0..49ea20413e7 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -165,7 +165,7 @@ void Tab::focus_location_editor() void Tab::navigate(QString url) { - if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive)) + if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive) && !url.startsWith("about:", Qt::CaseInsensitive)) url = "http://" + url; view().load(ak_deprecated_string_from_qstring(url)); }