Ticket #30 (closed enhancement: fixed)
Add redirectEvent for filters/plugins
| Reported by: | jorgeloyo.accounts@… | Owned by: | kurtwiersma |
|---|---|---|---|
| Priority: | minor | Milestone: | Mach-II 1.8.0 alpha |
| Component: | framework - core | Version: | 1.8.0 - Framework |
| Keywords: | redirect, announce | Cc: | kurtwiersma, mattwoodward, brianfitzgerald, peterfarrell |
| Blocking: | Blocked By: |
Description (last modified by peterfarrell) (diff)
I have numerous event-handler's that perform a simple redirect.
<event-handler event="goHome" access="public"> <redirect event="home"/> </event-handler>
To avoid the number of this type of event-handler's I decided to create a generic event-handler:
<event-handler event="redirectEvent" access="public"> <filter event="redirectFilter"/> </event-handler>
In the filter I use <cflocation> and BuildUrl() to go where I want.
Although this works great, this method leaves out one nifty feature available when using the <redirect> in the controller, which is the ability to persist arguments.
I was wondering whether or not it would be helpful to include a "redirectEvent" method to the MachII.framework.BaseComponent so that the full feature would be available from a plugin/filter.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

