From 924cfc18e21d050151e211a1dff877921150d1df Mon Sep 17 00:00:00 2001 From: Mischa Date: Sat, 4 Jul 2026 13:58:16 +0200 Subject: [PATCH] fix: point entry/story back button at the trip page The back pills use history.back() when history exists, but fall back to href=page.parent().url for direct-landing visitors (shared link, new tab). After Phase 1 that fallback pointed at the retired /dailies (404) and /stories (redirect) containers. Point it at the trip page (grandparent) instead, which is where the feed now lives. Co-Authored-By: Claude Opus 4.8 --- themes/intotheeast/templates/entry.html.twig | 4 ++-- themes/intotheeast/templates/story.html.twig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/intotheeast/templates/entry.html.twig b/themes/intotheeast/templates/entry.html.twig index 3919a6f..ec83003 100644 --- a/themes/intotheeast/templates/entry.html.twig +++ b/themes/intotheeast/templates/entry.html.twig @@ -1,12 +1,12 @@ {% extends 'partials/base.html.twig' %} {% block content %} -← Back +← Back {% set entry = page %} {% include 'partials/entry-journal.html.twig' %} {% endblock %} diff --git a/themes/intotheeast/templates/story.html.twig b/themes/intotheeast/templates/story.html.twig index 2e83e02..2f27eb3 100644 --- a/themes/intotheeast/templates/story.html.twig +++ b/themes/intotheeast/templates/story.html.twig @@ -1,7 +1,7 @@ {% extends 'partials/base.html.twig' %} {% block nav %} -← Back +← Back {% endblock %} @@ -59,7 +59,7 @@ {{ page.content|raw }}