diff options
Diffstat (limited to 'Applications/Browser')
-rw-r--r-- | Applications/Browser/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp index 30f733ced4..f774e2df0f 100644 --- a/Applications/Browser/main.cpp +++ b/Applications/Browser/main.cpp @@ -318,9 +318,13 @@ int main(int argc, char** argv) URL url_to_load = home_url; if (app.args().size() >= 1) { - url_to_load = URL(); - url_to_load.set_protocol("file"); - url_to_load.set_path(app.args()[0]); + if (app.args()[0].starts_with("file://")) { + url_to_load = URL(app.args()[0]); + } else { + url_to_load = URL(); + url_to_load.set_protocol("file"); + url_to_load.set_path(app.args()[0]); + } } html_widget.load(url_to_load); |