URL needs to be updated after clicking on a Doc which I have no permission to access

Hello experts,

I come across a issue of which I’m not sure how to handle.

Say I have 2 Contacts. One created by me, let’s call it #1, and another created by another User of which I have no access right, and let’s call it #2.

When I click on this #2, I would be prompted like this, which is fine.

Please note that the URL has changed to /contacts/Marketing-1.

Now, I click on #1, which will bring up the details of the Contact, which is fine too.

The issue is then when I click the Back button in web browser, it will go back to /contacts/Marketing-1, because this is where it comes from!

How would you go about handling this?