Detect Event Slug from Referrer URL

View as Markdown
## Detect Event Slug from Referrer URL Extracts the event slug from the HTTP referrer header for contextual ordering. ### Endpoint `GET https://convention.photos/api/event-prefix` ### Description When users navigate from the photo gallery to the ordering system, this endpoint parses the referrer URL to determine which event they were viewing, pre-populating the order form. ### Headers - **Referer**: The referring URL from photos.conventionphotography.com ### Response Returns JSON with detected event slug: ```json { "eventSlug": "ASDAR26" } ``` ### Use Cases - Auto-detect event when linking from gallery - Pre-populate order forms with correct event - Maintain context across platforms ### Authentication No authentication required.

Response

Detected event slug