krytenuk / refresh-redirect
Laminas module for redirecting
2.2.0
2021-12-26 09:38 UTC
Requires
- php: ^7.0 || ~8.0.0 || ~8.1.0
- laminas/laminas-mvc: ^3.3
- laminas/laminas-servicemanager: ^3.8
- laminas/laminas-session: ^2.12
- psr/container: >=1.0
README
Docs available online.
I was inspired to write this simple module after using ZF flashMessanger controller plugin and view helper. The problem I found is when using the view helper the messages in flashMessanger are deleted, this means that if the user refreshes the page all messages are gone. This can possibly lead to errors depending on your code. To overcome this issue I wrote the refresh redirect module, this simply checks if the same page is called a second time, if so redirect to a different page.