turns out my fix (add searched-for item to portal_path search param) IS needed after all,
because otherwise I get this JavaScript error:
Error: HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy