how to get rid of chrome default page once user logged in – nextjs

I am using Next.js router.replace once the user enters the home page. It’s working great, but the issue is that the back button is still enabled. If I click the back button, it goes to Chrome’s default page. How can I get rid of this? Does anyone have any ideas?

router.replace({
 pathname: '/home',
});