Help with code for URL paramaters

I am doing this in the code with the query parameter:

let query = wixLocation.query;

wixWindow.openLightBox(‘ICARIS’, {‘message’:query}); });

Query should be the location of the query part of my page