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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | cck_redirection-185883-2.patch | 756 bytes | jromine |
Comments
Comment #1
jromine commentedI had this issue, and implemented a fix. Enter the internal path without a leading slash. Patch attached.
Comment #2
robin monks commentedA 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