Remove a short if block which literally doesn't do anything.
Add an option of searching for related items by path.

This allows users to search with a specific path. A search string such as
'path:/some/path' returns the item at this path and all items in its subtree.