mirror of
https://github.com/thecyberlearn/quantum-ai-v2.git
synced 2026-08-18 15:52:59 +00:00
ISSUE: Agent pages were not opening due to URL pattern conflict between agent_base/urls.py and individual agent app URLs. SOLUTION: - Remove conflicting 'agents/<slug:agent_slug>/' pattern from agent_base URLs - Add get_absolute_url() method to BaseAgent model for clean URL generation - Update marketplace template to use agent.get_absolute_url instead of URL reversal - Remove redundant agent_detail_view that was causing redirect loops RESULT: - Individual agent pages now load correctly (/agents/data-analyzer/, etc.) - Marketplace correctly links to individual agent pages - Authentication flow works as expected (login required for agent access) - No more URL conflicts or redirect loops 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
229 B
Python
9 lines
229 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = 'agent_base'
|
|
|
|
urlpatterns = [
|
|
path('marketplace/', views.marketplace_view, name='marketplace'),
|
|
path('api/agents/', views.agents_api_view, name='agents_api'),
|
|
] |