summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-09-01 22:25:39 -0400
committerShaun McCance <shaunm@gnome.org>2011-09-01 22:25:39 -0400
commitc5f0c871ed0d417b1629769e8471bd948962badb (patch)
treeb623d38a7d7799bbd5787a4ca8487958c0314a8e
parenta23843bcb8652c26506c3a302179a598618bc802 (diff)
downloadyelp-c5f0c871ed0d417b1629769e8471bd948962badb.tar.gz
yelp-uri: Set fulluri correct for xref: in help: URIs, #658023
-rw-r--r--libyelp/yelp-uri.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index b5ff304c..63b550ed 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -1167,6 +1167,13 @@ resolve_xref_uri (YelpUri *uri)
priv->frag_id ? "#" : "",
priv->frag_id ? priv->frag_id : "",
NULL);
+ else if (g_str_has_prefix (priv->docuri, "help:"))
+ priv->fulluri = g_strconcat (priv->docuri,
+ priv->page_id ? "/" : "",
+ priv->page_id ? priv->page_id : "",
+ priv->frag_id ? "#" : "",
+ priv->frag_id ? priv->frag_id : "",
+ NULL);
else if (g_str_has_prefix (priv->docuri, "file:") ||
g_str_has_prefix (priv->docuri, "info:") )
priv->fulluri = g_strconcat (priv->docuri,