1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00: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
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));