Fix //View/Edit// link in the presence of product subdomains. Fixes #586. Ensure that the resource URL is properly constructed for all of the product and resource mappings specified in BEP-0003. Patch by Olemis.