Try to use only "absolute" links to avoid trailing-slash bugs

This commit is contained in:
Bat
2018-07-26 19:00:23 +02:00
parent 999e91290a
commit b42030e831
6 changed files with 13 additions and 14 deletions
+1 -2
View File
@@ -259,8 +259,7 @@ impl Blog {
pub fn to_json(&self, conn: &PgConnection) -> serde_json::Value {
let mut json = serde_json::to_value(self).unwrap();
let formatted = serde_json::Value::String(format!("/~/{}",self.get_fqn(conn)));
json["fqn"] = formatted;
json["fqn"] = json!(self.get_fqn(conn));
json
}
}