diff options
Diffstat (limited to 'Applications/Browser/Tab.cpp')
-rw-r--r-- | Applications/Browser/Tab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index c0653feccc..4ce198a216 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -100,7 +100,7 @@ Tab::Tab() m_location_box->on_return_pressed = [this] { String location = m_location_box->text(); - if (!location.starts_with("file://") && !location.starts_with("http://") && !location.starts_with("https://")) { + if (!URL(location).is_valid()) { StringBuilder builder; builder.append("http://"); builder.append(location); |