1
0
Fork 0
mirror of https://github.com/Corewala/Buran synced 2024-12-22 07:42:43 +00:00

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

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)