Chris | Warawul Coffee GmbH
Chris | Warawul Coffee GmbH
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 12/1/2023 in #general-help
Cloudflare redirect - CSS, Images, JS not working after redirect
I am currently using it as SSG on cloudflare pages. I would assume this requires SSR? Maybe I could have an event on initial page load but then it would first load the page in German and then redirect to English as a second step, if I'm not mistaken.
7 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 12/1/2023 in #general-help
Cloudflare redirect - CSS, Images, JS not working after redirect
Thanks, this is very helpful. I did set up a redirect language switched in Astro itself. This is the one that sets the cookie. My hope was that this cookie would be recognised and then redirect automatically if they visit again, to avoid confusion when they land on the locale they don't understand when they revisit. I will try to find a solution that works with your tips. Thanks again
7 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 12/1/2023 in #general-help
Cloudflare redirect - CSS, Images, JS not working after redirect
Nobody can help? MeowHeartCloudflare
7 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/27/2023 in #general-help
Cloudflare Redirect breaking CSS and JS
Can anyone else help?
8 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/27/2023 in #general-help
Cloudflare Redirect breaking CSS and JS
@Erisa | Support Engineer can you help?
8 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/27/2023 in #general-help
Cloudflare Redirect breaking CSS and JS
Would be gratefule for your help!
8 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/27/2023 in #general-help
Cloudflare Redirect breaking CSS and JS
And the other one has the If expression
(http.cookie contains "userLang=en" and not starts_with(http.request.uri.path, "/en"))
(http.cookie contains "userLang=en" and not starts_with(http.request.uri.path, "/en"))
8 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/27/2023 in #general-help
Cloudflare Redirect breaking CSS and JS
Hi, so I used the redirect rules and it has the If Expression
(ip.geoip.country ne "DE" and not http.cookie contains "userLang=de" and not starts_with(http.request.uri.path, "/en"))
(ip.geoip.country ne "DE" and not http.cookie contains "userLang=de" and not starts_with(http.request.uri.path, "/en"))
and Then Expression Dynamic
concat("https://",http.host,"/en",http.request.uri.path)
concat("https://",http.host,"/en",http.request.uri.path)
and status code 302
8 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/16/2023 in #pages-help
Script does not work with environmental variables
Thanks I managed to get turnstile API to work with env, but not the sendgrid API
5 replies
CDCloudflare Developers
Created by Chris | Warawul Coffee GmbH on 11/16/2023 in #pages-help
Script does not work with environmental variables
Any help? What am I missing with regards to environmental variables in functions
5 replies