diff options
-rw-r--r-- | libyelp/yelp-uri.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c index ca315641..7425f25c 100644 --- a/libyelp/yelp-uri.c +++ b/libyelp/yelp-uri.c @@ -1437,8 +1437,9 @@ resolve_gfile (YelpUri *uri, const gchar *query, const gchar *hash) g_object_unref (old); } else if (g_str_equal (mime_type, "text/xml") || - g_str_equal (mime_type, "application/docbook+xml") || - g_str_equal (mime_type, "application/xml")) { + g_str_equal (mime_type, "application/docbook+xml") || + g_str_equal (mime_type, "application/xml") || + g_str_has_suffix (basename, ".docbook")) { char *path; priv->tmptype = YELP_URI_DOCUMENT_TYPE_DOCBOOK; |