Currently, we do it by appending fragments of strings and manually escaping data, which isn't ideal. URL and URLSearchParams should be used instead.
Description
Description
Revisions and Commits
Revisions and Commits
Related Objects
Related Objects
Event Timeline
Comment Actions
Dedicated JavaScript interfaces must be used to build search URLs instead of manually building them (see https://forge.softwareheritage.org/source/swh-web/browse/master/swh/web/assets/src/bundles/browse/origin-search.js$179-188 and https://forge.softwareheritage.org/source/swh-web/browse/master/swh/web/assets/src/bundles/browse/origin-search.js$89-98)