Error on the UI Macro, message says -The reference to entity "sysparam_media" must end with the ';' delimiter.
The"&" character is used in the macro. The ampersand (&) is a special character in HTML and XML. The ampersand denotes the start of an encoded entity. For example, "<" is used to encode the "<" symbol, and ">" is used to denote the ">" symbol. Entities are always prefixed by the "&" character and suffixed by the ";" character. The "&" character to be parsed correctly, which explains the error message.
Replace "&" with "&" in the URL
Example as below:
var url = 'sys_report_display.do?sysparm_report_id=2cfe5aa70f3ba6804caac09ce1050e05&sysparm_media=print';
Refer XML Character references character_encoding