Valak JL
Valak JL
CDCloudflare Developers
Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
Well... actually, I see on the doc it said Settings > Trigger > Route, but it seems it should be on Settings > Domains & Route > Route, right?
10 replies
CDCloudflare Developers
Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
Yeah, I'm trying to piece it together, I'm sorta new to this 😅 From what I see on the doc about routes I'd need to add a trigger event and route in the settings, right?
10 replies
CDCloudflare Developers
Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
I've been having issues using the redirect rules due to using GHL platform, which isn't allowing rederict to or from multi-level paths, I was advised to try a workaround on worker.dev to do this. I am trying to redirect these paths: url.pathname === '/collections/hoodies' url.pathname === '/collections/hoodies?page=1' url.pathname === '/collections/hoodies?page=2' All from the same domain to this path: /products-list/collections/hoodies
10 replies
CDCloudflare Developers
Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
Hello! It is running on worker.dev
10 replies