This may be my misunderstanding of how this is intended to work, as opposed to a bug. If so, feel free to educate me :-)

If I enter an internal path, such as node/21 as the URL for a related link, it gets stored as such in the url field of the links table. However, the corresponding "related link" that appears as http://example.com/drupal/links/goto/24/12/links_related at the bottom of the page does not work. When I click it I get an error page that says "Outlink Redirection, Link data not found".

CommentFileSizeAuthor
#1 links.inc_0.patch777 bytesRayZ

Comments

RayZ’s picture

Status: Active » Needs review
StatusFileSize
new777 bytes

Here's a simple patch that modifies links_goto_link() to call links_is_external() and if it returns false, passes the url through url() before redirecting.

syscrusher’s picture

Assigned: Unassigned » syscrusher
Status: Needs review » Fixed

Patch doubleplusgood. Accepted for today's CVS commit, with much thanks.

Scott

syscrusher’s picture

@RayZ...

By the way, in answer to your first paragraph, your understanding of how this is supposed to work is correct. Internal links *are* supposed to be supported.

Scott

syscrusher’s picture

@RayZ...

By the way, in answer to your first paragraph, your understanding of how this is supposed to work is correct. Internal links *are* supposed to be supported.

Scott

Anonymous’s picture

Status: Fixed » Closed (fixed)