Different modules can specify links to go in the "operations" column in the logs table when they call watchdog();
These links are generally generated by url() or l() functions which makes them relative to the current drupal installation, but then they are stored like that permanently. On some site configurations this can lead to dead links.
This is essentially the existence of a static system link, which is something we don't normally do in Drupal.
Example:
sub.site.com doing a search generates a watchdog message with a link to /search/user/Fool2
an admin viewing the logs on another subsite with a /path/ after it will fail.
So on www.site.com/subsite/, the link will simply link to www.site.com/search/user/Fool2. If www.site.com is not a subsite itself, this will fail.
Solution:
Have modules return a links array instead of a static link to the watchdog. Values will be fed into l() to dynamically generate the link the way all the others are.
Comments
Comment #1
mile23Drupal 5 is unsupported at this time.
Comment #2
marcingy commented