diff options
-rw-r--r-- | libyelp/yelp-uri-builder.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libyelp/yelp-uri-builder.c b/libyelp/yelp-uri-builder.c index 58a53ac9..6671c110 100644 --- a/libyelp/yelp-uri-builder.c +++ b/libyelp/yelp-uri-builder.c @@ -31,6 +31,10 @@ build_network_uri (const gchar *uri) soup_uri = soup_uri_new (uri); + /* Don't mangle URIs for local files */ + if (g_str_equal (soup_uri->scheme, "file")) + return g_strdup (uri); + /* Build the URI that will be passed to WebKit. Relative URIs will be * automatically resolved by WebKit, so we need to add a leading slash to * help: and ghelp: URIs to be considered as absolute by WebKit. @@ -103,4 +107,4 @@ gchar * build_network_scheme (const gchar *scheme) { return g_strdup_printf (BOGUS_PREFIX "%s", scheme); -}
\ No newline at end of file +} |