Skip to content

Commit

Permalink
세션 상세의 URL에 세션 제목 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Oct 2, 2024
1 parent 14472a1 commit 44ca178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Session/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const SessionItem: React.FC<{ session: APIPretalxSessions[0] }> = ({ session })
/>
</SessionItemImgContainer>
<SessionItemInfoContainer>
<h4 onClick={() => navigate(`/session/${session.code}`)}>{session.title}</h4>
<h4 onClick={() => navigate(`/session/${session.code}??${session.title.replace(/ /g, "-")}`)}>{session.title}</h4>
<p>{session.abstract}</p>
<SessionSpeakerContainer>
by{" "}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Session/timetable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const SessionColumn: React.FC<{
return (
<td rowSpan={rowSpan} colSpan={colSpan}>
<SessionBox
onClick={() => clickable && navigate(`/session/${session.code}`)}
onClick={() => clickable && navigate(`/session/${session.code}?${session.title.replace(/ /g, "-")}`)}
className={clickable ? "clickable" : ""}
style={{ height: sessionBoxHeight }}
>
Expand Down

0 comments on commit 44ca178

Please sign in to comment.