Currentyl, we use domain_goto($domain) to ensure that form pages are submitted from the correct subdomain. This is mostly needed with Domain Conf and Domain Content.

I got a little too aggressive and adding this to the Domain Create and Domain Edit functions, which can cause a problem. If you create a domain record for an invalid domain, you cannot edit it; you must delete and start over.

Fix is to remove domain_goto() from those form pages.

We could, if needed, validate a newly created domain by running drupal_http_request() on domain creation. That might be helpful; but it might be code bloat, too.

Comments

agentrickard’s picture

Status: Active » Fixed

Removed domain_goto(). The other part could be brought up as a feature request.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.