Updated regex for hash

The pattern allow for other parameters such as campaign codes, and the
#domain-redirected hash is expandable for no visitor message (for
long-term redirects) or visitor message (for short/medium term
redirects). Use one by default, the other else. JS needs minor updates
for the message/no message evaluation to work.