Skip to content

Conversation

@lee-chase
Copy link
Member

We should not use href with react router when routing within the application. Instead use either the react-router component Link or useNavigation.

The current route is provided by useLocation.

e.g.

<HeaderName as={Link} to='/' >Starter</HeaderName>

@lee-chase lee-chase requested a review from rodet as a code owner June 13, 2025 14:17
@rodet rodet merged commit 97c410f into main Jun 14, 2025
4 checks passed
@rodet rodet deleted the useRouterLinkOnServedPages branch June 14, 2025 08:22
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.

2 participants