Skip to content

Commit

Permalink
Solving bug managing deeplink path.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelplazaspalacio committed Oct 24, 2023
1 parent 1d5016e commit 6455b07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import java.net.URI
class ManageDeepLinkUseCase : BaseUseCaseWithResult<OCFile?, ManageDeepLinkUseCase.Params>() {

override fun run(params: Params): OCFile? {
val pathParts = params.uri.fragment.split(PATH_SEPARATOR)
val path = params.uri.fragment ?: params.uri.path
val pathParts = path.split(PATH_SEPARATOR)
if (pathParts[pathParts.size - 2] != DEEP_LINK_PREVIOUS_PATH_SEGMENT) {
throw DeepLinkException()
}
Expand Down

0 comments on commit 6455b07

Please sign in to comment.