Skip to content

[PRMP-1162] Href navigate changed to onclick navigate#998

Merged
adamwhitingnhs merged 3 commits intomainfrom
PRMP-1162
Jan 19, 2026
Merged

[PRMP-1162] Href navigate changed to onclick navigate#998
adamwhitingnhs merged 3 commits intomainfrom
PRMP-1162

Conversation

@adamwhitingnhs
Copy link
Contributor

@adamwhitingnhs adamwhitingnhs commented Jan 16, 2026

Overview

https://nhsd-jira.digital.nhs.uk/browse/PRMP-1162

Description

Replace all internal href links with on click react navigate calls.

Context

We appear to still be having some caching issues in prod, it looks like when we do a route navigation using a href link instead of a react router navigate, the browser treats this is a page reload but fetches a cached version of the webpage instead of nginx returning the correct index html file.
This PR changes all the internal href links to use react router navigate.

Checklist

Tasks for all changes:

  • 1. I have linked this PR to its Jira ticket.
  • 2. I have run git pre-commits. (WIP)
  • 3. I have added and/or updated relevant tests.
  • 4. I have updated relevant documentation.
  • 5. I have considered the cross-team impact (and have PR approval from both Core & Demographics if necessary).
  • 6. I have successfully deployed this change to a sandbox and witnessed unit and e2e tests passing:

@adamwhitingnhs adamwhitingnhs marked this pull request as ready for review January 19, 2026 10:08
@adamwhitingnhs adamwhitingnhs requested review from a team as code owners January 19, 2026 10:08
lillie-dae
lillie-dae previously approved these changes Jan 19, 2026
lillie-dae
lillie-dae previously approved these changes Jan 19, 2026
@github-actions
Copy link

Code security issues found

View full details here.

@github-actions
Copy link

Code security issues found

View full details here.

@adamwhitingnhs adamwhitingnhs enabled auto-merge (squash) January 19, 2026 15:04
@github-actions
Copy link

Code security issues found

View full details here.

@sonarqubecloud
Copy link

@adamwhitingnhs adamwhitingnhs merged commit e21b5e0 into main Jan 19, 2026
17 of 18 checks passed
@adamwhitingnhs adamwhitingnhs deleted the PRMP-1162 branch January 19, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants