Answers.Body: <p>There didn't seem to be anything related in the CiviCRM log (with logging turned on) or PHP error log. In the Apache error log there was a strange error:</p>
  
  <pre><code>AH01797: client denied by server configuration: 
  /home/username/public_html/sites/default/files/civicrm/custom/delete-this-MDH295Ww25
  </code></pre>
  
  <p>Permissions all seemed fine, however.</p>
  
  <p>I ended up installing <code>wkhtmltopdf</code> and bypassing <code>dompdf</code> which isn't really a solution to the problem but is an alternative.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-24T23:14:55.750Z
Answers.Text: I think that's related to the System checks, but can't be sure.  Might want to call the System.check api and see if that appears again in the logs.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-24T21:34:30.927Z
Answers.LastActivityDate: 2018-01-24T21:34:30.927Z
Answers.UserDisplayName: Laryn
Body: <p>I just had a report of someone who was trying to generate PDF thank you letters for recent contributions, and when they click "Make Thank-you Letters", instead of downloading a PDF they were redirected to a Contribution page on the front end. </p>
  
  <p>That sounded bizarre, so I tested and it did the same for me. I can't think of any recent change on the site that could cause this. I just upgraded to the latest release (from 4.7.27 to 4.7.29) and cleared caches, but it didn't solve it.</p>
  
  <p>Has anybody else seen this type of behaviour before? Where to start looking to figure out what's happening?</p>
  
Tags: <pdf><redirect>
Title: Creating thank you letters redirects to a contribution page
ThreadText: # Creating thank you letters redirects to a contribution page
  
  (Asked by: username_0 on 2018-01-19)
  
  I just had a report of someone who was trying to generate PDF thank you letters for recent contributions, and when they click "Make Thank-you Letters", instead of downloading a PDF they were redirected to a Contribution page on the front end.
  
  That sounded bizarre, so I tested and it did the same for me. I can't think of any recent change on the site that could cause this. I just upgraded to the latest release (from 4.7.27 to 4.7.29) and cleared caches, but it didn't solve it.
  
  Has anybody else seen this type of behaviour before? Where to start looking to figure out what's happening?
  
  **Tags:** pdf, redirect
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-01-24. Score: 0 | Accepted answer
  
  There didn't seem to be anything related in the CiviCRM log (with logging turned on) or PHP error log. In the Apache error log there was a strange error:
  AH01797: client denied by server configuration: 
  /home/username/public_html/sites/default/files/civicrm/custom/delete-this-MDH295Ww25
  
  Permissions all seemed fine, however.
  I ended up installing wkhtmltopdf and bypassing dompdf which isn't really a solution to the problem but is an alternative.
  
  > **Comments:**
  > **username_1**: I think that's related to the System checks, but can't be sure.  Might want to call the System.check api and see if that appears again in the logs.  
  
  ---
  
  