A site that I am building has several 'puff' areas on the homepage - these are essentially graphics that when clicked will navigate the user to another page within the site. I have installed the CCK Redirection module to allow maintainers of the site to add/edit this redirection without having to use PHP in the content of these puffs. The module works great - but I do think it would be useful to redirect to an existing page within the site (other than with a full URL).

Looking at the code, it would appear that the _cck_redirection_validate_uri function could be changed to validate against internal pages (including URL aliases) before defaulting back to full URL checking.

Also, the Panels module has a nice node look up feature to find pages to link to.

I will try to have a look at this myself - but I have limited experience with Drupal - so thought I would leave my thoughts here.

CommentFileSizeAuthor
#1 cck_redirection-185883-2.patch756 bytesjromine

Comments

jromine’s picture

Status: Active » Needs review
StatusFileSize
new756 bytes

I had this issue, and implemented a fix. Enter the internal path without a leading slash. Patch attached.

robin monks’s picture

Status: Needs review » Closed (duplicate)

A full-featured solution for this issue is in the 6.x branch, work to backport it to 5.x should be done in that issue: http://drupal.org/node/445894#comment-3636748

/Robin