aradianoff / recaptchacontact

reCaptcha Contact Plugin for Grav CMS (getgrav.org)
MIT License
8 stars 11 forks source link

Error! Woops. Looks like this page doesn't exist. #49

Open coevolving opened 6 years ago

coevolving commented 6 years ago

On a brand new site, the plug-in sends out the e-mail message properly, but I then get a message:

Error!
Woops. Looks like this page doesn't exist.

When I use the Chrome browser "back" button, I see:

Thank You! Your message has been sent.

Has this plugin been tested on a multiple language site? My guess is that the after the successful send, the browser isn't returning to mysite.com/base/en/contact#contact-form

fugo commented 5 years ago

The same - I get a 404 site with message PLUGIN_ERROR.ERROR_MESSAGE `

fugo commented 5 years ago

I fixed this for me. recaptchacontact try to open after sending/error etc a wrong url. My site looks like this : mywebsite.domain.tld/test/contact but recap. opens mywebsite.domain.tld/test/contact/contact#contact-form correct should be mywebsite.domain.tld/test/contact#contact-form I found in /user/plugins/recaptchacontact/recaptchacontact.php line 176 : $this->grav->redirectLangSafe($uri->url()); and changed it to $this->grav->redirectLangSafe($uri->url); Now it workes.