fix: use events_url() for calendar links in post nav

Calendar routes moved to events service, so blog can no
longer use url_for('blog.post.calendars...').

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-10 09:35:01 +00:00
parent fda91bbea6
commit 66edfca7dc

View File

@@ -29,11 +29,10 @@
{# Calendars #}
{% for calendar in calendars %}
{% set local_href=url_for('blog.post.calendars.calendar.get', slug=post.slug, calendar_slug=calendar.slug) %}
{% set href=local_href|host %}
{% set local_href=events_url('/calendars/' + calendar.slug + '/') %}
<a
href="{{ local_href }}"
hx-get="{{ href }}"
hx-get="{{ local_href }}"
hx-target="#main-panel"
hx-select="{{ hx_select_search }}"
hx-swap="outerHTML"