diff --git a/owncloudApp/src/main/AndroidManifest.xml b/owncloudApp/src/main/AndroidManifest.xml
index bb593c9adab..76d959630b1 100644
--- a/owncloudApp/src/main/AndroidManifest.xml
+++ b/owncloudApp/src/main/AndroidManifest.xml
@@ -236,6 +236,13 @@
android:host="@string/oauth2_redirect_uri_path"
android:scheme="@string/oauth2_redirect_uri_scheme" />
+
+
+
+
+
+
+
diff --git a/owncloudApp/src/main/res/values/setup.xml b/owncloudApp/src/main/res/values/setup.xml
index c6cb4488195..5b862b83907 100644
--- a/owncloudApp/src/main/res/values/setup.xml
+++ b/owncloudApp/src/main/res/values/setup.xml
@@ -134,4 +134,7 @@
false
+
+ owncloud
+
diff --git a/owncloudDomain/src/main/java/com/owncloud/android/domain/exceptions/DeepLinkException.kt b/owncloudDomain/src/main/java/com/owncloud/android/domain/exceptions/DeepLinkException.kt
index 764aabb4e1a..fc88820b51d 100644
--- a/owncloudDomain/src/main/java/com/owncloud/android/domain/exceptions/DeepLinkException.kt
+++ b/owncloudDomain/src/main/java/com/owncloud/android/domain/exceptions/DeepLinkException.kt
@@ -1,5 +1,25 @@
+/**
+ * ownCloud Android client application
+ *
+ * @author Manuel Plazas Palacio
+ *
+ * Copyright (C) 2022 ownCloud GmbH.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.owncloud.android.domain.exceptions
class DeepLinkException() : Exception(INVALID_FORMAT)
-const val INVALID_FORMAT = "Invalid deep link format"
\ No newline at end of file
+const val INVALID_FORMAT = "Invalid deep link format"
diff --git a/owncloudDomain/src/main/java/com/owncloud/android/domain/files/usecases/ManageDeepLinkUseCase.kt b/owncloudDomain/src/main/java/com/owncloud/android/domain/files/usecases/ManageDeepLinkUseCase.kt
index d92ce26e02f..fd3cb35102b 100644
--- a/owncloudDomain/src/main/java/com/owncloud/android/domain/files/usecases/ManageDeepLinkUseCase.kt
+++ b/owncloudDomain/src/main/java/com/owncloud/android/domain/files/usecases/ManageDeepLinkUseCase.kt
@@ -1,3 +1,23 @@
+/**
+ * ownCloud Android client application
+ *
+ * @author Manuel Plazas Palacio
+ *
+ * Copyright (C) 2022 ownCloud GmbH.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.owncloud.android.domain.files.usecases
import com.owncloud.android.domain.BaseUseCaseWithResult
@@ -8,7 +28,7 @@ import java.net.URI
class ManageDeepLinkUseCase : BaseUseCaseWithResult() {
override fun run(params: Params): OCFile? {
- val pathParts = params.uri.path.split(PATH_SEPARATOR)
+ val pathParts = params.uri.fragment.split(PATH_SEPARATOR)
if (pathParts[pathParts.size - 2] != DEEP_LINK_PREVIOUS_PATH_SEGMENT) {
throw DeepLinkException()
}
@@ -22,4 +42,4 @@ class ManageDeepLinkUseCase : BaseUseCaseWithResult