Open the popup and chagne the URL without go to the next page

i want to create a website similar to Product Hunt where when a user clicks on a post on the homepage, it opens up in a popup and the URL changes to include the post ID or unique identifier without navigating to a new page. how can i do this?

This topic was automatically closed after 70 days. New replies are no longer allowed.