removed a bunch of blank comment lines
[citadel.git] / webcit / html2html.c
index 659f454c33e409c6c0a5521bd68a70fca3a1ffcd..965dc55d69bc57ea9458068f8d19602897b261aa 100644 (file)
@@ -6,16 +6,11 @@
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License, version 3.
- * 
- * 
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * 
- * 
  */
 
 #include "webcit.h"
@@ -400,7 +395,9 @@ void output_html(const char *supplied_charset, int treat_as_wiki, int msgnum, St
                                && (strncasecmp(ptr, "<a href=\"knrooms?", 17))
                        ) {
                                content_length += 64;
-                               StrBufAppendPrintf(converted_msg, "<a href=\"wiki?page=");
+                               StrBufAppendPrintf(converted_msg, "<a href=\"wiki?go=");
+                               StrBufUrlescAppend(converted_msg, WC->CurRoom.name, NULL);
+                               StrBufAppendPrintf(converted_msg, "?page=");
                                ptr = &ptr[9];
                        }
                        else {