Replace the URL with a button without redirecting to that page

Hi,
If I understand correctly, the main goal is not changing the URL but displaying different content without changing the page.
If this is is the case, you can use dynamic item pages .

Basically, when you filter a dynamic page, it’s URL and content will change but the page remains the same.