allow redirect via pg query param