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