--- dillo.orig/src/interface.c Sat Sep 9 21:08:36 2000 +++ dillo.my/src/interface.c Mon Oct 16 03:06:12 2000 @@ -654,7 +656,7 @@ Interface_openfile_ok_callback(GtkWidget */ void a_Interface_entry_open_url(GtkWidget *widget, BrowserWindow *bw) { - gchar *url; + gchar *url, *BaseUrl; GtkEntry *entry; /* Find which entry to get the URL from. This is a bit of a hack. */ @@ -666,7 +668,13 @@ void a_Interface_entry_open_url(GtkWidge #ifdef VERBOSE g_print("entry_open_url %s\n", gtk_entry_get_text(entry)); #endif - url = a_Url_resolve_relative("http:/", gtk_entry_get_text(entry)); + if ( (gtk_entry_get_text(entry))[0] == '/') /* if the first char is a slash, */ + BaseUrl = "file:"; /* the user wants a file. */ + else + BaseUrl = "http:/"; + + url = a_Url_resolve_relative(BaseUrl, gtk_entry_get_text(entry)); + if ( url ) { a_Nav_push(bw, url); g_free(url);