I have added AMP to my project and trying to figure out an validation issue with http
protocol in form action. In the official example, I can see that it is possible to have relative URL: https://github.com/ampproject/amphtml/blob/master/examples/forms.amp.html
1) when I try to use relative URL it becomes invalid
The relative URL '/amp/someurl' for attribute 'action' in tag 'form' is disallowed.
2) when I try to use absolute URL, it complains about protocol
Invalid URL protocol 'http:' for attribute 'action' in tag 'form'.
the last error disappears when I use https
instead of http
. But the problem is that the website does not have https
and the form is being used just for searching.
Maybe I have to use some <amp-iframe>
in order to solve it?