fix(web): Support http:// links

This commit is contained in:
Michael Aaron Murphy 2022-03-28 01:12:39 +02:00 committed by Michael Murphy
parent a50a19ab3b
commit 73afa4ce65

View file

@ -169,7 +169,9 @@ impl App {
}
fn build_query(definition: &Definition, query: &str) -> String {
let prefix = if definition.query.starts_with("https://") {
let q = definition.query.as_str();
let prefix = if q.starts_with("https://") || q.starts_with("http://") {
""
} else {
"https://"