fix issues pointed out by @BaptisteGelez in review

This commit is contained in:
Igor Galić
2019-06-15 22:07:37 +02:00
committed by Igor Galić
parent cc0df4ecb2
commit fe110b5d8a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ impl Blog {
.unwrap_or_else(|| Host::new(format!(
"{}/~/{}",
Instance::get_local().unwrap().public_domain,
self.title
self.fqn,
)))
)
}
+1 -1
View File
@@ -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())