SPA navigation when using a slug

So I have an SPA where I am using a slug for an item in the URL. For example:

I then have a menu and I want the user to be able to navigate away to a different URL, e.g.

In an SPA I can’t use a navigation aciton, is there anyway to “clear” the slug? Event just setting this as a blank would help.