https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28196 Phil Ringnalda <phil@chetcolibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |phil@chetcolibrary.org --- Comment #4 from Phil Ringnalda <phil@chetcolibrary.org> --- Since we don't support Internet Explorer, why not use the URL object, and let it do the work of parsing for you? Something like (untested, so I'll probably typo something) let parsedurl = new URL($(this).attr('href')); parsedurl.searchParams.set('searchid',me.searchid); window.location = parsedurl.href; Bonus advantage: if searchParams.set() sees that someone has screwed up and the URL already has two searchid params in it, it'll set one and delete the other, while doing it by hand would be adding a third. -- You are receiving this mail because: You are watching all bug changes.