• Stefy Lanza (nextime / spora )'s avatar
    Fix admin navigation URL endpoint error · 6e3cf9e3
    Stefy Lanza (nextime / spora ) authored
    PROBLEM DIAGNOSED:
    - Admin panel was throwing BuildError: 'Could not build url for endpoint main.admin_settings'
    - Template was trying to link to 'main.admin_settings' but actual route function is 'admin_system_settings'
    
    ROOT CAUSE ANALYSIS:
    - In app/main/routes.py line 789: route function is named 'admin_system_settings'
    - In app/templates/main/admin.html line 70: template was calling 'main.admin_settings'
    - URL endpoint mismatch caused Flask routing error
    
    SOLUTION IMPLEMENTED:
    - Updated admin.html template line 70 to use correct endpoint name
    - Changed from: url_for('main.admin_settings')
    - Changed to: url_for('main.admin_system_settings')
    
    VERIFICATION:
    - Route function 'admin_system_settings' exists and imports successfully
    - URL endpoint now matches the actual route function name
    - Admin panel should load without BuildError
    - System Settings link should work correctly
    
    This resolves the reported admin panel navigation error.
    6e3cf9e3
Name
Last commit
Last update
..
admin.html Loading commit data...
admin_logs.html Loading commit data...
admin_migrations.html Loading commit data...
admin_settings.html Loading commit data...
admin_users.html Loading commit data...
dashboard.html Loading commit data...
fixture_detail.html Loading commit data...
index.html Loading commit data...
match_detail.html Loading commit data...
matches.html Loading commit data...
statistics.html Loading commit data...
uploads.html Loading commit data...
user_tokens.html Loading commit data...