summaryrefslogtreecommitdiff
path: root/gtk/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/fetch.c')
-rw-r--r--gtk/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/fetch.c b/gtk/fetch.c
index 10b26bd48..13ffceb86 100644
--- a/gtk/fetch.c
+++ b/gtk/fetch.c
@@ -238,11 +238,11 @@ static nsurl *nsgtk_get_resource_url(const char *path)
/* favicon.ico -> favicon.png */
if (strcmp(path, "favicon.ico") == 0) {
- path = "favicon.png";
+ nsurl_create("resource:favicon.png", &url);
+ } else {
+ netsurf_path_to_nsurl(filepath_sfind(respaths, buf, path), &url);
}
- netsurf_path_to_nsurl(filepath_sfind(respaths, buf, path), &url);
-
return url;
}