Fix incorrect rendering of flash messages
Flash messages are not cleared unless they are accessed in a request. Our JSON requests don't read the flash causing these messages to persist to unrelated requests. We fix this by only setting the flash message for non-AJAX HTML requests.
Showing
Please register or sign in to comment