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
On submit event the url in the browser is updated to /partials/test?q=<query>. I would expect the url in the browser to be updated to /search?q=<query>.
When using partial with forms the url is updated in the browser to the url of the partial value (
f-partial
).Example:
On
submit
event the url in the browser is updated to/partials/test?q=<query>
. I would expect the url in the browser to be updated to/search?q=<query>
.When digging through the code I can see the function
maybeUpdateHistory
with the url of the partial location is called.https://github.com/denoland/fresh/blob/main/src/runtime/entrypoints/main.ts#L1096
A solution would be to create two different url variables, one from
f-partial
and one fromaction
. Both of them need to contain the new search params from the form. That approach seems to be done for theclick
event https://github.com/denoland/fresh/blob/main/src/runtime/entrypoints/main.ts#L958-L960The text was updated successfully, but these errors were encountered: