]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
The 'wiki home' link now contains a go= parameter
[citadel.git] / webcit / context_loop.c
index e9f9401952310010b02c0f65615d4cd5fc83c4dd..785fdb6aa4996b504d3709c9df80b99a9f8fba10 100644 (file)
@@ -4,7 +4,7 @@
  * keep track of things.  If the HTTP request doesn't belong to any currently
  * active session, a new session is started.
  *
- * Copyright (c) 1996-2011 by the citadel.org team
+ * Copyright (c) 1996-2012 by the citadel.org team
  *
  * 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.
@@ -336,7 +336,8 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf)
        else {
                /* If this is a "flat" request for the root, display the configured landing page. */
                Hdr->HR.DontNeedAuth = 1;
-               StrBuf *NewLine = NewStrBufPlain(HKEY("GET /landing HTTP/1.0"));
+               StrBuf *NewLine = NewStrBuf();
+               StrBufAppendPrintf(NewLine, "GET /landing?go=%s HTTP/1.0", ChrPtr(Buf));
                syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
                int return_value = ReadHttpSubject(Hdr, NewLine, Buf);
                FreeStrBuf(&NewLine);