From 5c092e52767e62987ef0294cde1ce40905fc5199 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 25 Aug 2020 21:02:56 +0200 Subject: Use relative URLs for redirects. --- src/controllers/screening.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/controllers/screening.rs') diff --git a/src/controllers/screening.rs b/src/controllers/screening.rs index cf7d1b1..06b0b84 100644 --- a/src/controllers/screening.rs +++ b/src/controllers/screening.rs @@ -93,7 +93,7 @@ pub fn create_screening(db: db::Connection, screening: Form) - start_time, end_time)?; - Ok(Redirect::to("/screenings")) + Ok(Redirect::to("screenings")) } #[get("/")] @@ -140,7 +140,7 @@ pub fn update(db: db::Connection, screening: Form) -> Result< start_time, end_time)?; - Ok(Redirect::to("/screenings")) + Ok(Redirect::to("screenings")) } #[derive(FromForm)] @@ -151,5 +151,5 @@ pub struct DeleteScreeningForm { #[delete("/", format = "application/x-www-form-urlencoded", data = "")] pub fn delete(db: db::Connection, screening: Form) -> Result> { db.delete_screening(screening.screening_id)?; - Ok(Redirect::to("/screenings")) + Ok(Redirect::to("screenings")) } -- cgit v1.2.3