Issue #3475194: Fix hostname comparison
requested to merge issue/target_attributes_filter-3475194:3475194-remove-www-prefix-from-hostname into 1.x
If the site hostname started with "www." all links were seen as external since the prefix wasn't stripped from the internal hostname.
Closes #3475194