Hitoshi Ozawa
Giga Sage

Hi Randy,

Replace "#" with "%23".

JavaScript function to encode url is encodeURIComponent().

var str = '#123';
var uri = "https://example.com/?product=" + encodeURIComponent(str);
gs.info(uri);

Execution result

*** Script: https://example.com/?product=%23123

FYI. Following page has a list of URL escape codes.

https://docs.microfocus.com/OMi/10.62/Content/OMi/ExtGuide/ExtApps/URL_encoding.htm