You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a page uses goto() to redirect to itself (say, to change a query parameter), and if the page has a ghost POST endpoint but no ghost GET endpoint, goto will result in displaying a 404 error page.
* fix: last match route fallthrough return 404
* fix
* make test relate more directly to the missing method
* remove renamed test files
* lint
Co-authored-by: tom <anytable@gmail.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
Describe the bug
If a page uses
goto()
to redirect to itself (say, to change a query parameter), and if the page has a ghost POST endpoint but no ghost GET endpoint, goto will result in displaying a 404 error page.Reproduction
goto
)Logs
System Info
Severity
serious, but I can work around it
Additional Information
Workaround is to provide a GET endpoint that returns a 200 response, but that seems to be an unnecessary network request.
The text was updated successfully, but these errors were encountered: