Note : I DO NOT want to redirect to previous url.
My registration form is a modal on the home page where i post my form to auth/register but when validation error happen it redirect me back to home page. Where I want to redirect to another route 'auth/register' where validation error will be shown.
I went through AuthenticatesAndRegistersUsers , ValidatesRequests , UrlGenerator. I found that it use header referer information to redirect me back to previous url.
Is there any way I can set in AuthenticatesAndRegistersUsers traits , postRegister method that if validation error happen from this method then redirect me to this specific url instead of using previous url ?