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:
+1
-1
@@ -47,4 +47,4 @@ def logout():
|
|||||||
logout_user()
|
logout_user()
|
||||||
current_app.logger.info(f'User logged out: {username}')
|
current_app.logger.info(f'User logged out: {username}')
|
||||||
flash('You have been logged out', 'info')
|
flash('You have been logged out', 'info')
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('landing.index'))
|
||||||
|
|||||||
@@ -22,6 +22,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p style="margin-top: 20px;">
|
<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>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -192,8 +192,6 @@
|
|||||||
<a href="{{ url_for('landing.index') }}">Home</a>
|
<a href="{{ url_for('landing.index') }}">Home</a>
|
||||||
{% if current_user.role == 'product_owner' %}
|
{% if current_user.role == 'product_owner' %}
|
||||||
<a href="{{ url_for('dashboard.list') }}">Dashboard</a>
|
<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 %}
|
{% endif %}
|
||||||
<a href="{{ url_for('auth.logout') }}" style="float: right;">Logout ({{ current_user.username }})</a>
|
<a href="{{ url_for('auth.logout') }}" style="float: right;">Logout ({{ current_user.username }})</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user