Scheduling infrastructure for absolutely everyone.
fix: link escaping in booking page (#10360)
Nafees Nazik9c8dc1b92cf7
diff --git a/packages/features/bookings/lib/getLocationOptionsForSelect.ts b/packages/features/bookings/lib/getLocationOptionsForSelect.tsindex 1b1ea7e2f43..7e14f67dfc8 100644--- a/packages/features/bookings/lib/getLocationOptionsForSelect.ts+++ b/packages/features/bookings/lib/getLocationOptionsForSelect.ts@@ -20,7 +20,9 @@ export default function getLocationsOptionsForSelect(const type = eventLocation.type;return {- label: t(locationString),+ // XYZ: is considered a namespace in i18next https://www.i18next.com/principles/namespaces and thus it get's cleaned up.+ // Beacause there can be a URL in here, simply don't translate it if it starts with http: or https:. This would allow us to keep supporting namespaces if we plan to use them+ label: locationString.search(/^https?:/) !== -1 ? locationString : t(locationString),value: type,inputPlaceholder: t(eventLocation?.attendeeInputPlaceholder || ""),};