Skip to content

Commit d6e10ff

Browse files
authored
Merge pull request #12 from BeAPI/fix-network-url
map private network domain to public domain
2 parents 44bd186 + 66271b1 commit d6e10ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mercator-domain-replacements.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public function translate_network_url() {
112112
// Change DNS Prefetch path
113113
// Use "href" to replace only network URLs starting with "//" and not all network URLs because there may be network URLs contributing.
114114
$this->domains[ "href='//" . wp_parse_url( $network_domain_internal, PHP_URL_HOST ) ] = "href='//" . wp_parse_url( $domain_mapped, PHP_URL_HOST );
115+
116+
// Change network URL to public domain
117+
$this->domains[ $network_domain_internal ] = $domain_mapped;
115118
}
116119
}
117120

0 commit comments

Comments
 (0)