Get the tf_prefix parameter from the closest namespace

Emulate previous behavior using searchParam