Currently freelinking.module seems to always generate relative URLs. This is a problem when, for example, freelinking links make it into email notifications.

The attached patch allows freelinking.module to generate absolute URLs if the site administrator sets the new freelinking_absolute_links variable.

CommentFileSizeAuthor
freelinking-absolute-00.patch461 bytessmokris

Comments

juampynr’s picture

Status: Needs review » Needs work

I do not think having all freelinks to be absolute could be useful. However, I may be up to extend the API so a specific link can be made absolute.

Could you give a hand on this? Ideally in Drupal 7, but if you provide a patch for Drupal 6 I will take care of porting it to 7.

gisle’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Needs work » Closed (won't fix)

The email notification module should make sure that any in-site links embedded in a notification email use an absolute path.

I just checked Notify, and it does this.

If an email notification module does not replace relative links with absolute URLs before mailing notifications, this is a bug and should be reported in its issue queue.