Pushing record removes dynamic param from url


#1

I have a custom url that renders a simple button the only duty of which is to push some data to backend

http://localhost:4200/users/1/workspaces/

When I click that button it resolves removing userId

http://localhost:4200/users/workspaces/

How can I define to use the same url?