News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

attribute "action" in forms and redirect to "nowhere"

Started by fsv, December 17, 2014, 22:10:53 PM

Previous topic - Next topic

fsv

Hello.
VM3.0.2 + J3.3.6
Old problem, since version 1.0
Forms ...

Example:
\administrator\components\com_virtuemart\views\product\tmpl\default.php
line 33
<form action="index.php" method="post" name="adminForm" id="adminForm">

In some cases, very uncomfortable when there is a redirect to /index.php.
Page after reloading must often have the same address.
Specifically, in this file - after clicking on the second page URL becomes  /administrator/index.php , 
I click to the third page, then I click "Back" button in browser, as a result - a mistake.
Perhaps this example is not very good and not critical (just now came across). But this is not the only such code. On FE is often critical.
I propose to review all forms and, where possible, remove «action» -
<form method="post" name="adminForm" id="adminForm">

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/