First of several required additions of 'go=' to wiki links
authorArt Cancro <ajc@uncensored.citadel.org>
Mon, 23 Apr 2012 22:41:53 +0000 (18:41 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Mon, 23 Apr 2012 22:41:53 +0000 (18:41 -0400)
webcit/wiki.c

index ff3e4362342ba77bf1407601ba44418b495441ac..c72dbf656a726508f00c3f87d0b3893b1d33933e 100644 (file)
@@ -163,10 +163,9 @@ void tmplput_display_wiki_history(StrBuf *Target, WCTemplputParams *TP)
                        wc_printf("</td>");
 
                        if (row == 0) {
-                               wc_printf("<td><a href=\"wiki?page=%s\">%s</a></td>",
-                                       bstr("page"),
-                                       _("(show)")
-                               );
+                               wc_printf("<td><a href=\"wiki?page=%s", bstr("page"));
+                               wc_printf("?go="); urlescputs(ChrPtr(WC->CurRoom.name));
+                               wc_printf("\">%s</a></td>", _("(show)"));
                                wc_printf("<td>(%s)</td>", _("Current version"));
                        }