diff --git a/app/main/views/index.py b/app/main/views/index.py index 79053077f..7ead8b647 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -26,12 +26,14 @@ from notifications_utils.url_safe_token import generate_token feature_guidance_enabled = os.getenv('FEATURE_GUIDANCE_ENABLED', 'false').lower() == 'true' + # Hook to check for guidance routes @main.before_request def check_guidance_feature(): if request.path.startswith("/guidance") and not feature_guidance_enabled: abort(404) + @main.route("/") def index(): if current_user and current_user.is_authenticated: