Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Do not skip ocis search results #1057

Merged
merged 1 commit into from
May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/helperFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ class helpers {

const remoteIndex = pathSections.findIndex(section => decodeURIComponent(section) === 'remote.php')
if (remoteIndex === -1) {
return null
// this is a ocis search result following the '/dav/spaces/' URL scheme. return as is.
return path
}
if (['webdav', 'dav'].indexOf(decodeURIComponent(pathSections[remoteIndex + 1])) === -1) {
return null
Expand Down