Skip to content

Commit cfc3af4

Browse files
Tony QiuTony Qiu
authored andcommitted
Navigate to event page in same tab instead of new tab
1 parent 1142c41 commit cfc3af4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

backend/apps/events/migrations/0033_events_comments_count_events_likes_count_and_more.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("events", "0032_alter_eventdates_id_alter_eventinterest_id_and_more"),
109
]

frontend/src/features/events/components/EventsGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const EventsGrid = memo(
244244
onClick={(e) => {
245245
if (!isSelectMode) {
246246
e.stopPropagation();
247-
window.open(`/events/${event.id}`, '_blank');
247+
window.location.href = `/events/${event.id}`;
248248
}
249249
}}
250250
/>

0 commit comments

Comments
 (0)