The 'static redirects' file may now contain a special token called 'home' which can...
[citadel.git] / webcit / webcit.c
index 6727f38782e0ff4a6cc12bcd6e846c0d7a83e1e2..117f8fdf9e0c2147ae00704398395ef77f3e7b01 100644 (file)
@@ -876,10 +876,16 @@ void display_default_landing_page(void) {
        wcsession *WCC = WC;
 
        if (WCC && WCC->serv_info && WCC->serv_info->serv_supports_guest) {
-               /* default action.  probably revisit this. */
-               StrBuf *teh_lobby = NewStrBufPlain(HKEY("_BASEROOM_"));
-               smart_goto(teh_lobby);
-               FreeStrBuf(&teh_lobby);
+               /* default action */
+
+               if (default_landing_page) {
+                       http_redirect(default_landing_page);
+               }
+               else {
+                       StrBuf *teh_lobby = NewStrBufPlain(HKEY("_BASEROOM_"));
+                       smart_goto(teh_lobby);
+                       FreeStrBuf(&teh_lobby);
+               }
        }
        else {
                display_login();