I know that you can achieve this by doing:
JFactory::getApplication->redirect(url, message, type)
but the documentation at
says it is deprecated and suggest to use
enqueueMessage that is also deprecated and that doesn't redirect you for example to home page.
How can I redirect an user to home page with system message using methods that are not deprecated. Documentation says they will (?) be deprecated in version 4 of Joomla, so is the current method the only one or is there already a new one standard method to achieve this?
These methods aren't deprecated on JApplicationCms (Joomla libraries), but are deprecated on JApplication (Joomla Plaftorm). So since
JFactory::getApplication returns JApplicationCms object, then the methods like
enqueueMessage aren't deprecated and using them is the correct way to redirect with message.