update facebook redirect logic to preserve query parameters