I can't recall ever encountering a referer-based authorization scheme that included the path or querystring in its logic--although it seems likely some goofus has implemented it, somewhere.
We could, of course, build the same functionality into our implementation without relying having the path/query in the referer.