openscholar/openscholar — pull request #4723 by baisong (2013-12-13 16:03:28+00:00)
Title: Integrate vsite and redirect validation #4433

#4433

#### Changes

* Implement `hook_redirect_hash_alter()` to include vsite group ID in array to be hashed and compared to find existing duplicates in `redirect_validate()`.
* Implement `vsite_redirect_parse_url_alter()` which runs during redirect add/edit form submit. Previously, when the "From" value was any existing site purl, the value saved to the new redirect entity was being modified by `purl_url_inbound_alter()` to "home". Now, this behaves correctly on standard domain site.

#### Todo

* On a site with a custom domain, test that a redirect with "From" value == {this_sites_own_purl} AND "From" value == {another_sites_purl} both work as expected