You could try using the <@s.RemoveParams>
macro: see Modern UI util functions - Funnelback Documentation - Version 15.24.0
Note: it operates on the query string so it may be necessary to split your URL first so it’s just passed the query string portion of your URL).