]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
When the root page is requested, replace it with a request for '/landing' which calls...
[citadel.git] / webcit / context_loop.c
index fb59144628ef36381458529276f4efafc6b8bf9f..e9f9401952310010b02c0f65615d4cd5fc83c4dd 100644 (file)
@@ -334,10 +334,9 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf)
                );
        }
        else {
-               Hdr->HR.DontNeedAuth = 1; /* Flat request? show him the login screen... */
-               StrBuf *NewLine = NewStrBufPlain(HKEY("GET /readfwd?go="));
-               StrBufUrlescAppend(NewLine, Buf, NULL);
-               StrBufAppendBufPlain(NewLine, HKEY(" HTTP/1.0"), 0);
+               /* 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"));
                syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
                int return_value = ReadHttpSubject(Hdr, NewLine, Buf);
                FreeStrBuf(&NewLine);