As I understand, query strings cannot be used to match location path, also that if statements should not be used inside a location block.
So I wonder how I can achieve th