Option to redirect within existing site

keks_davidson - October 23, 2007 - 15:56
Project:CCK Redirection
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

#1

jromine - April 1, 2009 - 21:28
Status:active» needs review

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

AttachmentSize
cck_redirection-185883-2.patch 756 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.