FIx issue with edit url parameter not being removed if it is the first query param

For #130