From fe110b5d8a4f9cdb4c7237760992ff7242844107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Gali=C4=87?= Date: Sat, 15 Jun 2019 22:07:37 +0200 Subject: [PATCH] fix issues pointed out by @BaptisteGelez in review --- plume-models/src/blogs.rs | 2 +- src/routes/blogs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plume-models/src/blogs.rs b/plume-models/src/blogs.rs index a52dad57..a4037ec2 100644 --- a/plume-models/src/blogs.rs +++ b/plume-models/src/blogs.rs @@ -335,7 +335,7 @@ impl Blog { .unwrap_or_else(|| Host::new(format!( "{}/~/{}", Instance::get_local().unwrap().public_domain, - self.title + self.fqn, ))) ) } diff --git a/src/routes/blogs.rs b/src/routes/blogs.rs index bdcb1c55..41251a3c 100644 --- a/src/routes/blogs.rs +++ b/src/routes/blogs.rs @@ -68,7 +68,7 @@ pub fn details( match (blog.custom_domain, page) { (Some(ref custom_domain), Some(ref page)) => { - Ok(Redirect::to(format!("https://{}/?{}", custom_domain, page)).into()) + Ok(Redirect::to(format!("https://{}/?page={}", custom_domain, page)).into()) } (Some(ref custom_domain), _) => { Ok(Redirect::to(format!("https://{}/", custom_domain)).into())