Use proper URL building in origin-search.js
Currently, we do it by appending fragments of strings and manually escaping data, which isn't ideal. URL and URLSearchParams should be used instead.
Migrated from T2286 (view on Phabricator)
Edited by Phabricator Migration user