forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Williams (JIRA)" <>
Subject [jira] Created: (FOR-804) using redirect-to in dispatcher doesn't work
Date Sun, 29 Jan 2006 22:17:44 GMT
using redirect-to in dispatcher doesn't work

         Key: FOR-804
     Project: Forrest
        Type: Bug
  Components: Dispatcher (aka views)  
    Versions: 0.8-dev    
    Reporter: Tim Williams
    Priority: Minor

The dispatcher doesn't seem to like map:redirect-to's as in:

      <map:match pattern="gallery/**/index.xml">
        <map:redirect-to uri="gallery/{1}/index_1.xml"/> 

This is fixed in the photogallery by changing it to:
      <map:match pattern="gallery/**/index.xml">
        <map:generate src="cocoon://gallery/{1}/index_1.xml"/>
        <map:serialize type="xml" />

I'm really not sure what the benefit of the map:redirect-to is in this instance.  It seems
like the cocoon protocol might be more appropriate anyway but it highlights that there may
be an issue with using redirect-to's in Dispatcher.  Further testing is required to make sure
it's really an issue, but it's not my major concern at the moment and I didn't want to get

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message