[dokuwiki] Re: [PATCH] New request-parameter redirect_id

  • From: Michael Hamann <michael@xxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 20 Aug 2008 15:58:25 +0200

Christopher Smith wrote:
Still on the not needing to change the core, perhaps a new event could be created to wrap the current redirect, along the lines of

name: ACT_REDIRECT_ONSAVE
data: array/object containing three values, page id, fragment-id, more
preventable:  yes
action: redirect to url created by combining the three data values
result: return value for act_save if no redirect takes place

notes:  after advise will not occur unless action (redirect) is prevented.

That sounds good, but as I noticed yesterday there is a similar situation after act_draftdel(), at the moment there is no redirect at all after act_draftdel(), but I would like to add a redirect there, too. So perhaps one would need an event there, too? Or one might use the same event with other data because also in the core the action to be executed is the same.

Michael Hamann
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: