mirror of
https://github.com/Corewala/Buran
synced 2025-01-03 13:44:24 +00:00
Fixed error with navigation to URLs containing "%2F"
This commit is contained in:
parent
494997c0ea
commit
82688f02b6
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ class OmniTerm(private val listener: Listener) {
|
||||||
else -> uri.resolve(link)
|
else -> uri.resolve(link)
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo - fix this, the double slash fix breaks the scheme, so this hack puts it back... uggh
|
val address = uri.toString().replace("//", "/").replace("gemini:/", "gemini://")
|
||||||
val address = uri.toString().replace("%2F", "/").replace("//", "/").replace("gemini:/", "gemini://")
|
|
||||||
println("OmniTerm resolved address: $address")
|
println("OmniTerm resolved address: $address")
|
||||||
|
|
||||||
if(invokeListener) listener.request(address)
|
if(invokeListener) listener.request(address)
|
||||||
|
|
Loading…
Reference in a new issue