nystudio107/retour

Switching Blitz to Cloudfront has broken Retour it seems

Closed this issue · 3 comments

Describe the bug

Since switching to Cloudfront in combination with Blitz static file caching it seems retour is broken. I get

  • "no data available" for both the dashboard and the redirects
  • clicking the "export CSV" redirects me to the homepage of the website (outside the admin panel)

Screenshots

image

Versions

  • Plugin version: 4.1.16
  • Craft version: 4.8.9

Hmm, seems this has everything to do with urls of these types: index.php?p=admin/actions/retour/charts/dashboard that needed to be added to the cache whitelisting.

Glad you sorted it out

I'm not sure the CP is a good thing to run through CloudFront generally speaking, though?

Yep, that was the issue, I only had the /admin whitelisted, not the index?p=admin