[yelp] [yelp-uri] Preserve both page_id and frag_id for file: URIs



commit a457e6bf49feb995d33a897a90caf046b6199ef5
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Jun 8 17:05:15 2010 -0500

    [yelp-uri] Preserve both page_id and frag_id for file: URIs

 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 dc2dba9..ec5fcce 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]