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

When the middleware does a redirect the server actions stops working. #577

Open
AlbertSabate opened this issue Oct 22, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@AlbertSabate
Copy link
Collaborator

Describe the bug
When the middleware does a redirect the server actions stops working.

To Reproduce
https://github.com/AlbertSabate/brisa-debug

Expected behavior
Server actions should work as expected.

OR

Provide a clear way for executing server actions without passing through the middleware.

@aralroca
Copy link
Collaborator

@AlbertSabate how can I reproduce it? I load /about, it redirects to / and then the server button with server action is working fine.

@aralroca aralroca added the bug Something isn't working label Oct 22, 2024
@AlbertSabate
Copy link
Collaborator Author

You have to go /about using the nav menu.

You can see on this video, the server actions seems working, but the middleware intercepts de request and does not work.
https://github.com/user-attachments/assets/bcd8c099-a63f-4f19-b371-d2a1b3fd648a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants