Skip to content

Commit 3247c88

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent deb2080 commit 3247c88

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/src/pages/ReservationsPage.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,14 @@ export const ReservationsPage: React.FC = () => {
145145
</svg>
146146
</button>
147147
{!isAuthenticated && (
148-
<a
149-
href="/login"
148+
<Link
149+
to="/login"
150+
state={{ from: { pathname: `/reservations/edit/${r.id}` } }}
150151
className="btn btn-sm btn-link p-0 ms-2 align-baseline"
151152
aria-label={`Login required for reservation ${r.id}`}
152153
>
153154
Login required
154-
</a>
155+
</Link>
155156
)}
156157
</td>
157158
</tr>

0 commit comments

Comments
 (0)