I wanted to limit visibility to a particular path, but only if it had no query string.

Ctools Path Visibility plugin didn't support this. It ignores the question mark and everything after.

On my site I solved this by cloning the plugin to a custom one, with one minor change.

Patch attached.