Fix url_for references and improve navigation

Issues fixed:
- Fixed base.html to use url_for('landing.index') instead of url_for('index')
- Fixed error_403.html and error_404.html to use correct landing page endpoint
- Added Dashboard link in base.html nav for product owners
- Removed obsolete templates/index.html (replaced by landing page)
- Added dashboard link in landing/index.html for authenticated product owners
- Added test to verify landing page renders correctly with proper url_for references

All 8 landing page tests passing.

🤖 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:19:49 +02:00
co-authored by Claude
parent b2e582bd9c
commit 342ef34cab
6 changed files with 30 additions and 26 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
<p>You do not have permission to access this resource.</p>
<p>
<a href="{{ url_for('dashboard.list') }}">Return to Dashboard</a> |
<a href="{{ url_for('index') }}">Go to Home</a>
<a href="{{ url_for('landing.index') }}">Go to Home</a>
</p>
</div>
{% endblock %}