Fix remaining url_for('index') references

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 <noreply@anthropic.com>
This commit is contained in:
2025-10-17 15:26:54 +02:00
co-authored by Claude
parent 342ef34cab
commit bbeacb0748
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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'))
+1 -1
View File
@@ -22,6 +22,6 @@
</form>
<p style="margin-top: 20px;">
<a href="{{ url_for('index') }}">Return to home page</a>
<a href="{{ url_for('landing.index') }}">Return to home page</a>
</p>
{% endblock %}
-2
View File
@@ -192,8 +192,6 @@
<a href="{{ url_for('landing.index') }}">Home</a>
{% if current_user.role == 'product_owner' %}
<a href="{{ url_for('dashboard.list') }}">Dashboard</a>
{% elif current_user.role == 'administrator' %}
<span style="color: #999;">(Admin Panel - Coming in Phase 6)</span>
{% endif %}
<a href="{{ url_for('auth.logout') }}" style="float: right;">Logout ({{ current_user.username }})</a>
</div>