fix(calendar): use blueprint-prefixed endpoints (public.user_profile, public.company_detail_by_slug)
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-17 14:53:27 +01:00
parent 3b7e528aca
commit ea0d5e5de1

View File

@ -147,7 +147,7 @@ def _enrich_event_description(db, html):
person_map = {}
for m in members:
if m.name not in person_map: # first match wins (longest name already sorted)
person_map[m.name] = flask_url_for('user_profile', user_id=m.id)
person_map[m.name] = flask_url_for('public.user_profile', user_id=m.id)
# Build replacement maps — companies
from database import Company
@ -160,7 +160,7 @@ def _enrich_event_description(db, html):
company_map = {}
for c in companies:
company_map[c.name] = flask_url_for('company_detail_by_slug', slug=c.slug)
company_map[c.name] = flask_url_for('public.company_detail_by_slug', slug=c.slug)
def enrich_text_node(text):
"""Apply person/company linking and URL linkification to a plain text fragment."""