How can I redirect a user based on their browser’s local storage values?
Example Rule:
-
User goes to domain(dot)com/global/inventory
-
Cloudflare checks user’s local storage key ‘location_set’
-
If ‘location_set’ is ‘0’, do not redirect user.
-
If ‘location_set’ is ‘1’, get user’s local storage key ‘location_slug’ value. Redirect user to domain(dot)com/{{location_slug value}}/inventory
Is this possible?