?index appended to form action
If I don't specify a form action, the action is assumed to the current path + ?index, eg: /join?index, but the form submission works and the correct action is called.
If I do specify the form action as the current path, eg: /join, and submit, I get 405 Method Not Allowed..
What am I missing here?
Same problem here, since react-router v7
Same issue
Had some solution by using fetcher instead, but even with redirection if we stay on page with errors from schema, it applies the "?index" part.
Can anybody create a minimum repro for this so I can check out what's going on?
This sounds like a react-router thing as I use their hooks to submit to the correct path, I'm assuming if you used their hooks directly it would still submit to the ?index route? I think that differentiates betwee nsubmitting to /dashboard.tsx and /dashboard.index.tsx
That's not minimum, but you can see at the signup page here: https://github.com/MrGlox/remix-nest-boilerplate
In any case the payload is submitted, in case of error and no redirection, we have the ?index added.
@MrGlox mind just sending me the exact file instead of the whole boilerplate?
Ah yes sry, https://github.com/MrGlox/remix-nest-boilerplate/blob/main/apps/web/app/routes/_auth%2B/signup.tsx but it is more visible in https://github.com/MrGlox/remix-nest-boilerplate/blob/main/apps/web/app/routes/_auth%2B/signin.tsx after a connection attempt. I'll try to make a minimum project !
what happens if you update "@react-router/remix-config-routes-adapter" to the non-alpha version?
I have this issue with using the standard RR7 routes config, just fyi.
Here: https://github.com/MrGlox/remix-hook-form-example
@MrGlox the repro has no relevant code, did you forget to commit?
It has all you need with just pnpm i and pnpm dev, see current screen, reproduced with a new computer just now.
I remain available if needed!