Redirect with workers preserving parameters

hi all, I have used workers for very simple things and I already have country redirect working but not with parameters , I saw CF even has listed an example better than my own , how could the code below be modified to do the redirect but include any parameters passed (www.abc.com/u?=1 ->>>> redirect to something/u?=1 depending on the country, for example. thank you all in advance