fix: Build absolute URLs from SITE_URL, not the request (v2.0.1)
Behind Caddy the app is reached over plain HTTP, so url_for(_external=True) produced http:// links on the https site: the RSS/OPML <link>s and the microformats u-url/u-uid permalinks that IndieWeb parsers treat as canonical. Templates now use absolute_url_for(), shared with the IndieAuth metadata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2d0568d9c2
commit
b4e6cf3cc3
10 files changed
+91
-23
No files matched your search
+1
-1
@@ -28,7 +28,7 @@
|
||||
|
||||
<footer class="note-meta">
|
||||
{# u-url for permalink #}
|
||||
<a class="u-url" href="{{ url_for('public.note', slug=note.slug, _external=True) }}">
|
||||
<a class="u-url" href="{{ absolute_url_for('public.note', slug=note.slug) }}">
|
||||
<time class="dt-published" datetime="{{ note.created_at.isoformat() }}">
|
||||
{{ note.created_at.strftime('%B %d, %Y') }}
|
||||
</time>
|
||||
|
||||
Reference in new issue
Block a user