Internal links are no longer recognized correctly when using version 7.20 of this module on a site that is hosted at a URL that contains a port number (e.g. www.domain.com:1234).

This seems to be related to the fact that the fix that was committed for the 7.x issue, #2962335-10: External link icon not always shown after update to 7.x-1.19, did not account for the port number component of the URL like the fix that was committed for the 8.x issue, #2914838-21: (Sub-)domain detection not reliable., did.

Comments

joegraduate created an issue. See original summary.

joegraduate’s picture

Issue summary: View changes
joegraduate’s picture

Issue summary: View changes
joegraduate’s picture

Assigned: joegraduate » Unassigned
Status: Active » Needs review
StatusFileSize
new541 bytes

The attached patch applies cleanly to the 7.x-1.x branch / 7.x-1.x-dev version of the module and fixes the issue for me.

joegraduate’s picture

trackleft2’s picture

The patch in comment #4 fixes the issue for me too! Thanks!

joegraduate’s picture

StatusFileSize
new529 bytes

This patch applies cleanly to the 7.x-1.20 version of the module. The patch in #4 is what should be committed but this version is useful for anyone currently affected by the issue using version 7.x-1.20.

Status: Needs review » Needs work

The last submitted patch, 7: urls_containing_port-3004486-7.patch, failed testing. View results

joegraduate’s picture

Status: Needs work » Needs review

Patch in #4 passes tests and is ready for review.

bkosborne’s picture

Status: Needs review » Reviewed & tested by the community

Works for me.

chris matthews’s picture

Thank you for this patch! I know that 7.x-1.20 was recently released in April, but I was hoping a 7.x-1.21 release could be tagged, which of course includes the patch in #4.
thanks,

  • elachlan committed bfa2469 on 7.x-1.x authored by joegraduate
    Issue #3004486 by joegraduate: URLs containing port numbers break...
elachlan’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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