bbsview_renderer readfwd links now include a go= parameter to include the room name
authorArt Cancro <ajc@uncensored.citadel.org>
Wed, 14 Sep 2011 16:03:30 +0000 (12:03 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Wed, 14 Sep 2011 16:03:30 +0000 (12:03 -0400)
webcit/bbsview_renderer.c
webcit/static.c

index fe0eb4fae797c550041ac5c1a94e5ff0f522b620..03d70ef2bd44accfea1a6f4ecbcc372a6179fca6 100644 (file)
@@ -343,7 +343,9 @@ 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("?page=%d\">", i);
                                                wc_printf("<span class=\"moreprompt_link\">");
                                        }
                                        if (
index ece24acf5905d1e76485b0e8d6b499c160bbee52..ab7ce69e0989c2788e94f8ed028efc04f106d06b 100644 (file)
@@ -354,6 +354,7 @@ void robots_txt(void) {
                "Disallow: /readnew\r\n"
                "Disallow: /display_enter\r\n"
                "Disallow: /skip\r\n"
+               "Disallow: /ungoto\r\n"
                "Sitemap: %s/sitemap.xml\r\n"
                "\r\n"
                ,