Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange action behaviour #3650

Closed
JakovGlavac opened this issue Jul 4, 2022 · 2 comments
Closed

strange action behaviour #3650

JakovGlavac opened this issue Jul 4, 2022 · 2 comments

Comments

@JakovGlavac
Copy link

What version of Remix are you using?

1.6.3

Steps to Reproduce

<fetcher.Form
  method="post"
  action="/notifications/"
>
  <input name="redirect" value={el.link} hidden />
  <input name="id" value={el.id} hidden />
  <button type="submit">klik</button>
</fetcher.Form>

the same result when using action="/notifications" and action="/notifications/"

Folder structure:
image

Expected Behavior

It should make a post request to /notifications
Like it does when i have file called notifications.tsx in routes
image

image

Actual Behavior

Returns: 405
image

@JakovGlavac JakovGlavac changed the title Wired action behaviour strange action behaviour Jul 4, 2022
@wurikiji
Copy link

wurikiji commented Jul 4, 2022

Would action="/notifications?index" solve this?

related docs

@JakovGlavac
Copy link
Author

Yeah this works.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants