The open source coding agent.
TypeScript
fix: use absolute paths for sidebar session navigation (#12898)
Paul0732ab3393f8
diff --git a/packages/app/src/pages/layout/sidebar-items.tsx b/packages/app/src/pages/layout/sidebar-items.tsxindex b184c8bff8b..678bfa0d86d 100644--- a/packages/app/src/pages/layout/sidebar-items.tsx+++ b/packages/app/src/pages/layout/sidebar-items.tsx@@ -144,7 +144,7 @@ export const SessionItem = (props: SessionItemProps): JSX.Element => {const item = (<A- href={`${props.slug}/session/${props.session.id}`}+ href={`/${props.slug}/session/${props.session.id}`}class={`flex items-center justify-between gap-3 min-w-0 text-left w-full focus:outline-none transition-[padding] ${props.mobile ? "pr-7" : ""} group-hover/session:pr-7 group-focus-within/session:pr-7 group-active/session:pr-7 ${props.dense ? "py-0.5" : "py-1"}`}onPointerEnter={scheduleHoverPrefetch}onPointerLeave={cancelHoverPrefetch}@@ -285,7 +285,7 @@ export const NewSessionItem = (props: {const tooltip = () => props.mobile || !props.sidebarExpanded()const item = (<A- href={`${props.slug}/session`}+ href={`/${props.slug}/session`}endclass={`flex items-center justify-between gap-3 min-w-0 text-left w-full focus:outline-none ${props.dense ? "py-0.5" : "py-1"}`}onClick={() => {