mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 06:34:26 +01:00
fix: added url encoding and decoding for goose recipe url (#2845)
This commit is contained in:
@@ -64,6 +64,7 @@ http = "1.0"
|
||||
webbrowser = "1.0"
|
||||
|
||||
indicatif = "0.17.11"
|
||||
urlencoding = "2"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
winapi = { version = "0.3", features = ["wincred"] }
|
||||
|
||||
@@ -47,7 +47,8 @@ pub fn handle_deeplink(recipe_name: &str) -> Result<()> {
|
||||
style("✓").green().bold(),
|
||||
recipe.title
|
||||
);
|
||||
println!("goose://recipe?config={}", deeplink);
|
||||
let url_safe = urlencoding::encode(&deeplink);
|
||||
println!("goose://recipe?config={}", url_safe);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user