Closed (duplicate)
Project:
Related links
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2008 at 12:09 UTC
Updated:
6 Dec 2010 at 20:41 UTC
What is stored in field url of relatedlinks table is not drupal path but path relative to server root.
If the web site is under a directory, for example http://mysite.com/dir, all url in relatedlinks table will start by /dir, what is not a part of the drupal path and they will be broken if the site's directory changes.
In function _relatedlinks_filter, url are generated by : $urls[] = ''. check_plain($link['title']) .'';
Don't the l() function of drupal should be used ?
Comments
Comment #1
Zen commented#313663: Bug when used with path aliases