Cloudflare not working properly

Hello friends!

I have created one worker for rerouting based on the Geo location. The worker is working as expected if someone opens the link directly in the browser. But unluckily if someone comes from Google then the worker is not rerouting. Google indexed the same link which is working directly in the link. I tried multiple route expressions. But the same issue. Can anyone help me with this problem?



Could you share the source code of your Worker and a link to your website?

Please check the screenshots for the source code. I can’t attach the link. Cloudflare is not allowing it. You can also see the website link on the screen.

This post was flagged by the community and is temporarily hidden.

What is the exact link that Google is going to?

You’re only running the Worker on / and /en so anything else won’t trigger it.