Hi,
When we add a component with <form> element to a .page then when the page gets rendered we will see the form action getting set with path to the .page to which the component got added.
Ex: I have registration.component and when I add it to a registration.page and when I access registration.page then see below content in view page source
<form onsubmit="return submitAction()" name="form1" id="form1" action="/dynamic-store/reglogin/registration.page?submit=true&componentID=1395868004571" method="post">
I would like to change the action attribute of the form element to a friendly URL at the server side itself. How can I do that in Teamsite?
<form onsubmit="return submitAction()" name="form1" id="form1" action="/photo-gift/registration?submit=true&componentID=1395868004571" method="post">
Note: Currently we have written a javascript code which executes on page load and changes the form action to the friendly URL. This will work, but in some cases when javascirpt function is not getting executes for some reason then users are getting blank page as we do not allow to render a page with .page extension.
Thanks
Vinod Goud