-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submit & Redirect not working as expected (3.0.5) #355
Comments
If you have a |
this is my form:
and it was working in v3.0.4 |
is your website in the root folder of your webserver? I have mine inside a 'grav' folder and when redirected it is removing the base url (a.k.a 'grav' folder in the url) |
Nope, actually in a subfolder. The thing is that it should not be redirecting at all, it should be submitting to the page the form sits on, then the message should show up on that form on when successfully submitted. |
For some reason it is redirecting for me. I think it could be related to this commit: f917a18 |
Try manually reverting that fix, and then you will know for sure. |
Do you have a |
So did reverting that fix, make things work as expected? |
Yes, it did |
ok try this instead:
|
that didn't work |
yah its not falling back, it's the action in the form object, just not sure why yours is not working when it does on mine and similar setup. |
BTW what version of Grav are you running? |
1.6.11 |
Anything else you can tell me about the your setup? webserver? platform? any vhosts? anything special in how you configured things? I just can't replicate your issue :( |
I don't have anything special at all, the site is installed in a interesting thing, it was working in v3.0.4 and reverting the commit makes it work again so it is confirmed is f917a18 |
yah, but the thing is that its now using a 'smarter' function in URL which should append the 'root', ie Can you turn on your debugger and add this in the
It should output |
it does |
so if you put this: what is the output:
?? |
see my edit.. forgot to wrap it in () the first time. |
sorry, I missed it, it outputs |
Well this makes no sense... We use this Can you please ZIP up your entire site and send to me at rhuk at getgrav dot org? |
Is there anything else I can send you instead of the whole site? Also, thank you so much for your help troubleshooting this, right now it is working with the manual revertion. |
to really recreate your setup, i need your whole site. if you want to remove any other pages other than the ones in question that's fine, they won't impact. but need config/plugins/overrides etc |
My email client is blocking it. |
Drop it on dropbox/gdrive/onedrive/etc and send me a link? |
Done |
Thanks that helped a tonne. I figured out the issue as soon as I loaded your page. So the problem is that the Grav This is actually a bigger "Gantry on Grav" issue that we need to get resolved. So i'm going to ping @mahagr about this as it will undoubtedly cause other problems with Grav-based Gantry themes where the BTW, I had JS errors in admin and had to reinstall the admin plugin via direct-install to resolve. I suspect you are uploading files via FTP or something and that is not very reliable. Better to upload the ZIP and use a local file manager UI to extract the files. Or better yet, use SSH and GPM in CLI, or GPM via the admin. |
@rhukster It looks like that Gantry has better support for URLs outside of the sites than Grav -- Grav always assumes that all the paths are in the Grav site, Gantry supports:
All of this said, we really need to stop using |
Thank you for all your help! |
I had an issue after updating from Form 3.0.3 to 3.0.7. from As soon as I copied back this line, the plugin worked and I found this thread. |
Should be fixed in next in develop branch/next release |
This is fixed now, right? |
The submit action is not working as expected when there is no explicit redirection, the base url was removed in v3.0.5 and this is causing an issue when just submiting but no redirecting. (it was working fine in v3.0.4)
The text was updated successfully, but these errors were encountered: