diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-08-30 13:18:14 +0200 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2015-02-16 20:00:55 +0000 |
commit | f670c33ddfe1839a0eb28abcf662b007119d23c0 (patch) | |
tree | 00f3ddd7b3456b72d0e5b563e58afdbc35c07277 | |
parent | eb306f16700753c2cf8c0b4df7393baf2be4ad28 (diff) | |
download | yelp-f670c33ddfe1839a0eb28abcf662b007119d23c0.tar.gz |
yelp-uri: Use 'index' as default page for help: uris when resolving a xref
If a xref: uri for a help: document has no page, use index as the
default one like resolve_help_uri does.
-rw-r--r-- | libyelp/yelp-uri.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c index 662da24f..c36bd6fc 100644 --- a/libyelp/yelp-uri.c +++ b/libyelp/yelp-uri.c @@ -1192,7 +1192,10 @@ resolve_xref_uri (YelpUri *uri) } if (priv->page_id && priv->page_id[0] == '\0') { g_free (priv->page_id); - priv->page_id = NULL; + if (g_str_has_prefix (priv->docuri, "help:")) + priv->page_id = g_strdup ("index"); + else + priv->page_id = NULL; } if (priv->page_id && |