Gary Austin Posted April 19, 2018 Posted April 19, 2018 I know I'm just a "beginner" with Processwire, but just spent hours trying to debug downloading a PDF with a post variable providing the data for the PDF. I must have missed somewhere the need for a trailing / after the page name to get post variables. Googling lots of stuff on templates/ posts/pdf/ etc and finally saw a few threads on the / at end of url meaning something. Added that and now I get my post data.... I don't like having to have a / at the end of the url the customer will see, but at least I can move forward now. Hopefully I missed something obvious... Anyway this forum area is entitled the Pub, and I certainly need a drink.
adrian Posted April 19, 2018 Posted April 19, 2018 Sorry you had a battle There is a template settings - under the URLS tab for changing whether URLs end in a slash or not This thread is worth a read: https://processwire.com/talk/topic/16930-options-for-trailing-slashes-and-seo/ - it includes some links on slash vs no slash. Also, just an FYI - variables in a URL are GET, not POST 1
Gary Austin Posted April 19, 2018 Author Posted April 19, 2018 I'll read it. I'm actually triggering a <form method="post" with jquery to send a post variable with my PDF data. Finally saw 301's and then 200's with no post data and knew something was going a stray...
Gary Austin Posted April 19, 2018 Author Posted April 19, 2018 (edited) Hmmm.. I run an Invision Board site and can edit posts, but I guess here is either not allowed for "Newbies" or at all. Anyway @adrian is what I wanted to add to my post. Edit: I see it must be short time limited... Edited April 19, 2018 by Gary Austin
elabx Posted April 20, 2018 Posted April 20, 2018 i also stumbled on this issue! Needed a drink too! Even asked a few days ago why this behaves like this! https://processwire.com/talk/topic/14638-no-input-data-when-post-form-with-ajax/?tab=comments#comment-163444 1
Gary Austin Posted April 20, 2018 Author Posted April 20, 2018 1 hour ago, elabx said: i also stumbled on this issue! Needed a drink too! Even asked a few days ago why this behaves like this! https://processwire.com/talk/topic/14638-no-input-data-when-post-form-with-ajax/?tab=comments#comment-163444 That is the exact issue I was up against and searching did not turn up that thread...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now