You can use replace :
var url2 = url.replace(/&c=[^&]+/,'')
2
solved Regex to remove a hash-parameter from the urls hash
You can use replace :
var url2 = url.replace(/&c=[^&]+/,'')
2
solved Regex to remove a hash-parameter from the urls hash