Form works only on "//page" but not on "/page" - [Gridsome]

Netlify forms do not work on the page as expected. When I submit the form on the page //connect it works but I expect it to work on /connect page only.

Links:
/connect: https://chumaumenze.com/connect
//connect: https://chumaumenze.com//connect

hi there, can you explain a little more why you need the double slash? that’s an unusual URL pattern. is there a specific thing you are trying to accomplish? :thinking: thanks!

I only need the form to work on /connect page.

I am not sure why the route //connect gets resolved. I think Gridsome can resolve pages like //connect, and for some reason the form does not work. The built pages are structures as follows: dist/connect/index.html.

Interesting. Those URL’s are the same file on our servers, so this sounds like something inside gridsome rather than on our servers, but let’s debug a bit further.

What happens when you try to access your site without the cloudflare proxy in front, as described here? [Common Issue] Why isn’t my SSL certificate provisioning automatically with Cloudflare & Netlify? Are there other problems with using Cloudflare in front of Netlify?

The issue seems to be from Gridsome. I disabled javascript in the browser and the form submissions worked as expected. To fixed the issue, I’m currently handling the form submission via Ajax.

1 Like