Contact.jsx: Self-referencing <a href="/contact"> link on contact page #66

Closed
opened 2026-05-17 17:53:27 -05:00 by null · 0 comments
Owner

Bug Description

src/pages/Contact.jsx line 127 has a "Submit Another" button after form submission that links to /contact using <a href="/contact">. This is on the Contact page itself, making it a self-referencing link. Additionally, it uses <a> instead of React Router's <Link>.

While a self-link technically works (it reloads the page), it defeats React Router's client-side navigation and causes an unnecessary full page reload on a page the user is already on.

Fix

Two options:

  1. Replace with a button that resets the form state (preferred — no navigation needed, just reset mutation state)
  2. Replace <a href="/contact"> with <Link to="/contact"> for consistency, though still unnecessary

Option 1 is better UX — reset the form in-place without a page reload.

Labels

  • bug, frontend, P3 Low
## Bug Description `src/pages/Contact.jsx` line 127 has a "Submit Another" button after form submission that links to `/contact` using `<a href="/contact">`. This is on the Contact page itself, making it a self-referencing link. Additionally, it uses `<a>` instead of React Router's `<Link>`. While a self-link technically works (it reloads the page), it defeats React Router's client-side navigation and causes an unnecessary full page reload on a page the user is already on. ## Fix Two options: 1. Replace with a button that resets the form state (preferred — no navigation needed, just reset mutation state) 2. Replace `<a href="/contact">` with `<Link to="/contact">` for consistency, though still unnecessary Option 1 is better UX — reset the form in-place without a page reload. ## Labels - bug, frontend, P3 Low
null added the
P3 Low
bug
frontend
labels 2026-05-17 17:53:27 -05:00
null closed this issue 2026-05-17 18:04:29 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#66
No description provided.