diff --git a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt index 1009a7787e..97a0efcca4 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt +++ b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt @@ -298,7 +298,7 @@ class KiwixReaderFragment : CoreReaderFragment() { when (it.scheme) { "file" -> openZimFile(ZimReaderSource(it.toFile())) "content" -> { - val zimReaderSource = ZimReaderSource(it) + val zimReaderSource = ZimReaderSource(getZimFileFromUri(it)) if (zimReaderSource.canOpenInLibkiwix()) { zimReaderContainer?.let { zimReaderContainer -> zimReaderContainer.setZimReaderSource(zimReaderSource)