In URL handling code, get the domain from config variable

This avoids hard coding the domain.