Skip to content
Unverified Commit 5f3d6b5f authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez Committed by Roeland Jago Douma
Browse files

Fix opening search results for comments



"OC.dirname" removes everything after the last "/", so a path without
slashes is returned without changes. "result.path" does not include
leading nor trailing "/", so when the path is for a file or folder in
the base folder "OC.dirname(result.path)" returns "result.path".

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 43ddf715
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment