Page links to itself
-
Hi,
I’ve got some trouble and am not sure if it’s a bug. So I hope you can tell…
Case:
– “External Links” pointing to term archives of the same website.
– When a term points to the current URL, it doesn’t get filtered. As a result, a link is created that’s pointing to the current URL.I was able to debug it down to SCO_TD_Parser::is_current_url(). (File: \terms-descriptions\includes\parsers\td_parser.php)
The URL in $cur_slug starts with ‘www.’ while $term_url doesn’t, which means that is_current_url() always fails.
For example: “www.example.com/path/” !== “example.com/path/”, so is_current_url() returns false and the parser creates the link.
Best regards
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Page links to itself’ is closed to new replies.