From 278d9c606a9d8e36a647473f77bda2402a83907d Mon Sep 17 00:00:00 2001 From: chelsea Date: Sat, 11 Oct 2025 17:46:22 -0500 Subject: [PATCH] Fix 404 when logged out - redirect to login MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 5d107cb..20464f1 100644 --- a/app.py +++ b/app.py @@ -273,11 +273,11 @@ def index(): except (json.JSONDecodeError, TypeError) as e: logger.warning(f"Invalid user settings JSON for user {current_user.id}: {e}") user_settings = {} - + return render_template('dashboard.html', user_settings=user_settings) else: - # For non-authenticated users, serve static content - return send_from_directory('active_html/no_filter', 'index.html') + # Redirect non-authenticated users to login + return redirect(url_for('login')) @app.route('/feed/')