diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-06-08 17:05:15 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-06-08 17:05:15 -0500 |
commit | a457e6bf49feb995d33a897a90caf046b6199ef5 (patch) | |
tree | 35d4c8d9bc2a8a7a663d6d93347bab3278235a14 | |
parent | 8e0828bf5a0320ee3b21fb268e04206c41a30d07 (diff) | |
download | yelp-a457e6bf49feb995d33a897a90caf046b6199ef5.tar.gz |
[yelp-uri] Preserve both page_id and frag_id for file: URIs
-rw-r--r-- | libyelp/yelp-uri.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c index dc2dba9b..ec5fcce6 100644 --- a/libyelp/yelp-uri.c +++ b/libyelp/yelp-uri.c @@ -1281,7 +1281,9 @@ resolve_gfile (YelpUri *uri, const gchar *hash) if (priv->fulluri == NULL) priv->fulluri = g_strconcat (priv->docuri, (priv->page_id || priv->frag_id) ? "#" : NULL, - priv->page_id ? priv->page_id : priv->frag_id, + priv->page_id ? priv->page_id : "", + priv->frag_id ? "#" : NULL, + priv->frag_id ? priv->frag_id : NULL, NULL); g_object_unref (info); |