Without the patch when you have a "Default domain" set without a trailing slash you get

Notice: Undefined index: path in purl_subdomain->rewrite() (line 54 of DOCROOT/sites/all/modules/patched/purl/includes/purl_subdomain.inc).

If you add a trailing slash, then the rewritten paths contain an extra slash.
E.g.
http://BASE//content/test

To remedy this issue, but still allow the use of a path with the default domain. I purpose a check for the base path much the same as done for the port in the rewrite for subdomains.

$base_path = (!empty($base['path'])) ? $base['path'] : "";
$options['base_url'] = "{$base['scheme']}://{$element->value}.{$base['host']}{$port}{$base_path}";

Comments

grndlvl’s picture

Status: Active » Needs review
StatusFileSize
new743 bytes

The patch has been rolled against the 7.x-1.x branch.

grndlvl’s picture

Issue summary: View changes

adjust spacing

bblake’s picture

Status: Needs review » Fixed

Patch has been committed. Thanks for the help.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

formatting