Fix 404 when logged out - redirect to login
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
6
app.py
6
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/<filterset>')
|
||||
|
||||
Reference in New Issue
Block a user