Add query fragment to target