From bf40babe6bc9bc76ae3bc5683cf376bb648c78e8 Mon Sep 17 00:00:00 2001 From: RonniSkansing Date: Mon, 10 Aug 2026 21:04:54 +0200 Subject: [PATCH] fix edgecase for new variable support Signed-off-by: RonniSkansing --- backend/app/server.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/app/server.go b/backend/app/server.go index 5192220..b50d337 100644 --- a/backend/app/server.go +++ b/backend/app/server.go @@ -936,11 +936,21 @@ func (s *Server) checkAndServePhishingPage( s.logger.Debugw("serving before landing page from state", "pageID", pageID.String(), ) - } else { + } else if beforeProxyID != nil { proxyID = beforeProxyID s.logger.Debugw("serving before landing Proxy from state", "proxyID", proxyID.String(), ) + } else if landingPageID != nil { + pageID = landingPageID + s.logger.Debugw("before stage no longer configured, falling back to landing page for before state", + "pageID", pageID.String(), + ) + } else { + proxyID = landingProxyID + s.logger.Debugw("before stage no longer configured, falling back to landing Proxy for before state", + "proxyID", proxyID.String(), + ) } currentPageType = data.PAGE_TYPE_BEFORE nextPageType = data.PAGE_TYPE_LANDING