Fixed little bug for url prefix

This commit is contained in:
Maurice 2022-11-03 18:42:00 +01:00
parent c375e0ccd7
commit 4a6317dda9
2 changed files with 2 additions and 2 deletions

@ -11,7 +11,7 @@ start() {
--security-opt=no-new-privileges \
-p 127.0.0.1:8080:8080 \
-v pastabble-v:/app/data \
-e PREFIX "https://paste.plabble.org" \
-e PREFIX="https://paste.plabble.org" \
pastabble'
}

@ -166,7 +166,7 @@ fn register_link(links: &Bucket<String,String>, req: &Request, id: Option<String
// Return url with key
let url = if prefix.is_some() {
format!("{}/{}", prefix.unwrap(), key)
format!("{}/to/{}", prefix.unwrap(), key)
} else {
key
};