Why does the page have to make a second redirect?
2009/8/7 Емил Иванов / Emil Ivanov <emil.vladev@gmail.com>
Imagine the following scenario:
The user performs some (state changing) action. The system does it and redirects him with a flash message to a page. But the page makes a second redirect to somewhere and - since this is another request - the message it lost without the user seeing it.
Would it be better if clearing the messages (The call to $this->resetNamespace(); at line 99 in Zend_Controller_Action_Helper_FlashMessenger) be performed only when the request is not a redirect. And since this would break BC - it could be a switch that is off be default? Does it makes sence?
Regards,
Emil Ivanov
--
My place to share my ideas:
http://bolddream.com (now live :)
没有评论:
发表评论