Need to make a url load html page in worker with path

I have a URL in cloudflare, say My use case is pretty simple. When I hit this URL, it should load the contents of a worker (NOT REDIRECT, just proxy url).

And also the path should be preserved with the original url. I don’t want to hardcode anything in the worker since I prefer this to be scaled for each page. Tried Cloudflare for SaaS but no result (probably couldn’t figure out a way to use it right).

Any help would be greatly appreciated.