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:
parent
5d8cda59ae
commit
d3fc3337ef
Notes:
sideshowbarker
2024-07-17 18:35:11 +09:00
Author: https://github.com/sppmacd
Commit: d3fc3337ef
Pull-request: https://github.com/SerenityOS/serenity/pull/12241
2 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue