]> code.citadel.org Git - citadel.git/blobdiff - webcit/bbsview_renderer.c
Detect screen dimensions _before_ attaching to the server.
[citadel.git] / webcit / bbsview_renderer.c
index fe0eb4fae797c550041ac5c1a94e5ff0f522b620..1406e83c1e08e6a96643c1b63869742f33aa112d 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "webcit.h"
 #include "webserver.h"
-#include "groupdav.h"
+#include "dav.h"
 
 /*
  * Data which gets passed around between the various functions in this module
@@ -343,7 +343,12 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat,
                                                wc_printf("[");
                                        }
                                        else {
-                                               wc_printf("<a href=\"readfwd?page=%d\">", i);
+                                               wc_printf("<a href=\"readfwd?go=");
+                                               urlescputs(ChrPtr(WC->CurRoom.name));
+                                               wc_printf("?start_reading_at=%ld\">",
+                                                       BBS->msgs[i*Stat->maxmsgs]
+                                               );
+                                               /* wc_printf("?page=%d\">", i); */
                                                wc_printf("<span class=\"moreprompt_link\">");
                                        }
                                        if (