get links to work properly with domain masking