From 2c6e06cf14cf5d0ab12e0eb8644e7b22f8b79d43 Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Sun, 6 Jul 2025 19:48:44 +0200 Subject: [PATCH] fix: redirect to calendar instead to overview --- ...points__events__get_edit__inner_produces_template.snap | 2 +- web/src/utils/mod.rs | 2 +- web/templates/availability/new_or_edit.html | 2 +- web/templates/calendar.html | 8 ++++---- web/templates/events/new_or_edit.html | 2 +- web/templates/events/plan.html | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/snapshots/brass_web__endpoints__events__get_edit__inner_produces_template.snap b/web/snapshots/brass_web__endpoints__events__get_edit__inner_produces_template.snap index 7150df41..275086ae 100644 --- a/web/snapshots/brass_web__endpoints__events__get_edit__inner_produces_template.snap +++ b/web/snapshots/brass_web__endpoints__events__get_edit__inner_produces_template.snap @@ -207,7 +207,7 @@ snapshot_kind: text
- + diff --git a/web/src/utils/mod.rs b/web/src/utils/mod.rs index 35186b29..f0957163 100644 --- a/web/src/utils/mod.rs +++ b/web/src/utils/mod.rs @@ -23,5 +23,5 @@ pub fn get_return_url_for_date(date: &NaiveDate) -> String { return String::from("/"); } - format!("/?date={}", date) + format!("/calendar?date={}", date) } diff --git a/web/templates/availability/new_or_edit.html b/web/templates/availability/new_or_edit.html index a32bbd7e..63497842 100644 --- a/web/templates/availability/new_or_edit.html +++ b/web/templates/availability/new_or_edit.html @@ -111,7 +111,7 @@
- + diff --git a/web/templates/calendar.html b/web/templates/calendar.html index c050e398..51fc55eb 100644 --- a/web/templates/calendar.html +++ b/web/templates/calendar.html @@ -8,7 +8,7 @@