remove url parameters with javascript or jquery April 18, 2023 by Tarik What am I missing? Why not: url.split('?')[0]