mixed work for more menu stuff
[webgit] / src / log.c
index 3d574a3..3d18ac1 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -38,10 +38,11 @@ webgit_log_link (struct webgit_query* query,
   return html (
                html_tag ("a",
                          html_attr ("href", html(
-                                                 html_fmt ("%s?repo=%s&action=log&head=%s",
+                                                 html_fmt ("%s?repo=%s&action=log",
                                                            query->request->script_name,
-                                                           repo,
-                                                           head?head:"master"),
+                                                           repo),
+                                                 head ? html_fmt("&head=%s", head)
+                                                 : html (),
                                                  object ? html_fmt("&object=%.*s",
                                                                    object_len, object)
                                                  : html (),