Next.js · Junior · Question 60 of 75
What does the replace prop do on <Link>?
<Link href="/step-2" replace>Next</Link>- ✓Correct answer: Replaces the current history entry instead of adding a new one
- 2Replaces the page content without changing the URL
- 3Opens the link in the same tab instead of a new one
Explanation
With replace, the browser's Back button skips the replaced page - handy for wizards or tab filters that shouldn't fill the history.