title: I got strange redirects with Inertiajs errors on data post submitting
body: <p>With Laravel 9/Inertiajs 3 I have home page with code in control :</p>
  <pre><code>return Inertia::render('Frontend/Home/Home');
  </code></pre>
  <p>In modal form (with &quot;vue-final-modal&quot;: &quot;^3.4.3&quot;) I made User register form as wizard with several steps
  and when user submit details form</p>
  <ol>
  <li><p>I run sendUserRegisterStep1 function with code :</p>
  <pre><code> &lt;div class=&quot;content frontend_modal_content_editor_form frontend_modal_content_wrapper&quot;
       v-show=&quot;user_register_wizard_step === 1&quot;&gt;
        ...
        &lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;modal_user_register_name&quot;
            v-model=&quot;formUserRegisterEditorStep1.name&quot; maxlength=&quot;100&quot;&gt;
        &lt;div class=&quot;fs-error mb-3&quot; v-if=&quot;formUserRegisterEditorStep1.errors&quot;
            :class=&quot;{ 'd-block' : formUserRegisterEditorStep1.errors &amp;&amp; formUserRegisterEditorStep1.errors.name}&quot;&gt;
            {{ formUserRegisterEditorStep1.errors.name }}
       &lt;/div&gt;
   &lt;/div&gt;
   ... 
   function sendUserRegisterStep1() {
       console.log('sendUserRegisterStep1::')
  
       formUserRegisterEditorStep1.value.post(route('user_register_step_1'), {
       preserveScroll: true,
           onSuccess: (resp) =&gt; {
           user_register_wizard_step.value = 2 // Open next step form
  
           formUserRegisterEditorStep1.value.id = resp.props.user.id // Pass parameter next steps form
           formUserRegisterEditorStep2.value.user_email = formUserRegisterEditorStep1.value.email
           formUserRegisterEditorStep2.value.user_id = resp.props.user.id
           userRegisterAvatarUploader.value.user_id = resp.props.user.id
           userRegisterAvatarUploader.value.user_email = resp.props.user.email
  
           new_registered_user_id.value = resp.props.user.id
           new_registered_user_email.value = formUserRegisterEditorStep1.value.email
  
           Toast.fire({
               icon: 'success',
               title: 'You have registered successfully. Check your email with confirmation code'
           })
       },
       onError: (e) =&gt; {
           console.log(e)
       }
   })
  </code></pre>
  <p>} // sendUserRegisterStep1</p>
  </li>
  </ol>
  <p>and control action :</p>
  <pre><code>public function register_step_1(RegisterStep1Request $request)
  {
  
      $newUser= null;
      try {
         // NEW USER CREATION CODE
      } catch (QueryException $e) {
      ...
      }
  
      // I suppose lines below raise problems
      return Inertia::render('Frontend/Home/Home',
          [ 'user'=&gt; $newUser]
      );
  } // public function register_step_1(RegisterStep1Request $request)
  </code></pre>
  <p>I the method above I can not return response()-&gt;json(, As I got error :
  All Inertia requests must receive a valid Inertia response</p>
  <p>when data are valid new user is created but url of my site is changed from home page</p>
  <pre><code>http://local-bi-currencies.com/
  </code></pre>
  <p>into post url</p>
  <pre><code>http://local-bi-currencies.com/register_step_1
  </code></pre>
  <p>as in routes I have :</p>
  <pre><code>Route::post('/register_step_1', [AuthController::class, 'register_step_1'])-&gt;name('user_register_step_1');
  </code></pre>
  <p>I think returning lines</p>
  <p>return Inertia::render('Frontend/Home/Home',</p>
  <p>are invalid, but I do not know which way can be used here?</p>
  <ol start="2">
  <li><p>On the second step I have similar form where user must enter confirmation code send by email.
  Having similar control with custom request :</p>
  <pre><code> public function register_step_confirmation_code( UserRegisterConfirmationCodeRequest $request)
   {
       ...
       $user-&gt;status= 'A'; // active
       $user-&gt;confirmation_code= null;
       $user-&gt;save();
       // And again I need to return some inertia responce...
       return Inertia::render('Frontend/Home/Home',
           ['user'=&gt; $user]
       );
   }
  </code></pre>
  </li>
  </ol>
  <p>when entered data are invalid and UserRegisterConfirmationCodeRequest with custom rulke :</p>
  <pre><code>public function rules()
  {
  
      $request = request();
  
      return [
          'confirmation_code' =&gt; 'required|min:8| ' . 'check_valid_confirmation_code:' . $request-&gt;confirmation_code . ','
                                 . $request-&gt;user_email . ',' . $request-&gt;user_id
      ];
  </code></pre>
  <p>and check_valid_confirmation_code defined as :</p>
  <pre><code>Validator::extend('check_valid_confirmation_code', function ($attribute, $value, $parameters, $validator) {
  
      $confirmation_code = $parameters[0] ?? null;
      $user_email        = $parameters[1] ?? null;
      $user_id           = $parameters[2] ?? null;
      $user = User
          ::getByEmail($user_email)
          -&gt;getById($user_id)
          -&gt;first();
      \Log::info(varDump($user, ' -12 check_valid_confirmation_code $user::'));
      if (empty($user)) {
          return false;
      }
      \Log::info(varDump(-13, ' -13 check_valid_confirmation_code ::'));
      // Checking log file I see that  line above  was written
      if ($user-&gt;confirmation_code != $confirmation_code) {
          return false;
      }
      // But line below WAS NOT WRITTEN
      \Log::info(varDump(-14, ' -14 check_valid_confirmation_code ::'));
  </code></pre>
  <p>and I get very strange GET request at</p>
  <pre><code>http://local-bi-currencies.com/register_step_1
  </code></pre>
  <p>and error as I do not have such GET request in my routes.</p>
  <p>I try to use inertia in somewhat uncommon way(At least I did not find methods in docs I cxan use here).
  Are the some usefull methods?</p>
  <p>I know how axios works in such case, but I do not want to use it, as I want to keep laravel validation/errors
  in my app. I suppose I can not use</p>
  <pre><code>{{ formUserRegisterEditorStep1.errors.name }}
  </code></pre>
  <p>with axios request.</p>
  <p>How that can be salved ?</p>
  <p>Thanks!</p>