1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

Browser: Call url_from_user_input for home URL

This allows omitting HTTP scheme in home URLs.
This commit is contained in:
Maciej 2022-01-31 21:14:19 +01:00 committed by Andreas Kling
parent 5d8cda59ae
commit d3fc3337ef
Notes: sideshowbarker 2024-07-17 18:35:11 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(load_content_filters());
URL first_url = Browser::g_home_url;
URL first_url = Browser::url_from_user_input(Browser::g_home_url);
if (specified_url) {
if (Core::File::exists(specified_url)) {
first_url = URL::create_with_file_protocol(Core::File::real_path_for(specified_url));