zakpatterson
zakpatterson
SSolidJS
Created by zakpatterson on 9/15/2024 in #support
SolidStart - proper `_server` form action urls are only on page refresh.
I have several pages with forms on them. If I go directly to one of those pages, the correct action="/_server..." shows in the DOM's form tag. If I navigate to the page using solid-router, the action is: function () { [native code]} and the form POSTs to function () {%20%20%20 [native code]} On refresh the page properly shows the correct action url. I searched around but couldn't find this exact issue. I guess the action URL is being replaced during server rendering, but if I don't load that page directly, the client only has a reference to some function somewhere. "@solidjs/router": "^0.14.5", "@solidjs/start": "^1.0.6",
4 replies