From bbeacb0748024e19ceccc2f37b7329ad276fa7e1 Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Fri, 17 Oct 2025 15:26:54 +0200 Subject: [PATCH] Fix remaining url_for('index') references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed the remaining url_for('index') calls that were causing test failures: - app/routes/auth.py: Updated logout redirect to use landing.index - app/templates/auth/login.html: Updated "Return to home" link to use landing.index - app/templates/base.html: Removed administrator placeholder text (cleaned up) All url_for('index') references have been replaced with url_for('landing.index'). Test results: 57 passed, 1 skipped, 4 errors (pre-existing fixture issues in performance tests) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/routes/auth.py | 2 +- app/templates/auth/login.html | 2 +- app/templates/base.html | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/routes/auth.py b/app/routes/auth.py index ec34a7e..59f1b37 100644 --- a/app/routes/auth.py +++ b/app/routes/auth.py @@ -47,4 +47,4 @@ def logout(): logout_user() current_app.logger.info(f'User logged out: {username}') flash('You have been logged out', 'info') - return redirect(url_for('index')) + return redirect(url_for('landing.index')) diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index f7ad333..be9ca7f 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -22,6 +22,6 @@

- Return to home page + Return to home page

{% endblock %} diff --git a/app/templates/base.html b/app/templates/base.html index ede1194..22a503e 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -192,8 +192,6 @@ Home {% if current_user.role == 'product_owner' %} Dashboard - {% elif current_user.role == 'administrator' %} - (Admin Panel - Coming in Phase 6) {% endif %} Logout ({{ current_user.username }})