Fixed error with navigation to URLs containing "%2F"

This commit is contained in:
Corewala 2022-05-07 12:49:28 -04:00
parent 494997c0ea
commit 82688f02b6
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ class OmniTerm(private val listener: Listener) {
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("%2F", "/").replace("//", "/").replace("gemini:/", "gemini://")
val address = uri.toString().replace("//", "/").replace("gemini:/", "gemini://")
println("OmniTerm resolved address: $address")
if(invokeListener) listener.request(address)