Closed azeemism closed 6 years ago
Please note the following additional related issue observations:
NOTE 1:
https://example.com/contact
reloads as https://example.com/contact/index/
when a comment is submitted.
NOTE 2:
Also note that if multiple comments are sent or if the captcha is incorrect when sending a comment additional index/
may be added or subtracted from the page url when it reloads again. For example https://example.com/contact/index/index/
NOTE 3: If the captcha is incorrectly entered, when the message is submitted all the text fields are reset. This will more than likely cause customer frustration and will likely lead to contact us message abandonment. I am not sure if this is the expected behavior or not, but if it is the expected behavior, I request your review not resetting the text fields--if the capture is incorrect when a message is submitted--as a new feature update to magento 2.
NOTE 4: Using nginx rewrites as a band-aid solution for this issue ticket
location / {
try_files $uri $uri/ /index.php?$args;
rewrite ^/(.+)(/index\.html)$ /$1 permanent;
rewrite ^/(catalogsearch/advanced)(/index)$ /$1 permanent;
rewrite ^/(.*)/$ /$1 permanent;
}
Result in
reload captcha
is pressed, the captcha reloads indefinitely without displaying a new captchaFurther:
It is possible that captcha will not reload or work on other forms (where captcha can be used) as well if, for captcha to work properly, it requires the form to be loaded with a forward-slash /
at the end of the url or index/
@azeemism, thank you for your report. We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue. We tested the issue on 2.1.9
When .html suffix is disabled
Search Terms
,Contact Us
,Orders and Returns
,Advanced Search
/index
and possibly '/index/' as wellPreconditions
Steps to reproduce
Load the following the following pages
Search Terms
,Contact Us
,Orders and Returns
,Advanced Search
then removeindex.html
if it is present and add/index
. Also try adding/index/
.Expected result
Pages should load as:
Actual result