Netlify Forms: Custom success message ignored due to invalid action parameter

Hello. I’m getting the same issue and can’t seem to figure it out.

<form
      name="contact"
      netlify-honeypot="bot-field"
      method="POST"
      action="/contact/thanks"
      data-netlify="true"
    >
      <input type="hidden" name="form-name" value="contact" />
      <div class="inputText">
        <label>Name</label>
        <br />
        <input type="text" name="name" class="marginbtm" />
      </div>
      <div class="inputText">
        <label>Email</label>
        <br />
        <input type="email" name="email" class="marginbtm" />
        <br />
      </div>
      <div class="inputText">
        <label>Message</label>
        <br />
        <textarea name="message" class="marginbtm"></textarea>
      </div>
      <button type="submit">送信する</button>
    </form>

Redirect is working, and I’m pretty sure I’ve deployed my own custom thank you page which is “/contact/thanks”, but it still redirects to the default Netlify thank you page. Any tips on troubleshooting?

Just fyi, I’ve already checked this page and I think I’m doing everything it says here.