From 3074748bbc6a8cb8fc0e95d2f24d626f0d0444d0 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 23 Aug 2025 09:24:20 +0200 Subject: [PATCH] fix: correct malformed gallery URLs in admin panel View Gallery links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed issue where full URLs in share_link field were incorrectly being prepended with `/gallery/` prefix, resulting in malformed URLs like: `/gallery/http://localhost:3000/gallery/event-slug/token` The fix now properly handles both formats stored in the database: - Full URLs (from adminEvents.js): Used directly - Relative paths (from events.js): Prepended with `/gallery/` This ensures View Gallery links work correctly regardless of which backend endpoint created the event. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/src/pages/admin/EventDetailsPage.tsx | 6 +++++- frontend/src/pages/admin/EventsListPage.tsx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/admin/EventDetailsPage.tsx b/frontend/src/pages/admin/EventDetailsPage.tsx index 8d07719..b1b86fc 100644 --- a/frontend/src/pages/admin/EventDetailsPage.tsx +++ b/frontend/src/pages/admin/EventDetailsPage.tsx @@ -363,7 +363,11 @@ export const EventDetailsPage: React.FC = () => { )} {event.share_link && ( { {event.share_link ? (