Cloudflare workers trim #hash part in url

For Workers & Pages, what is the name of the domain?

it doesn’t matter

What is the issue or error you’re encountering

For url = example.com#id=1, cloudflare trim #id=1 from request.url

What are the steps to reproduce the issue?

async fetch(request, env, ctx) {
console.log(‘hash’, new URL(request.url).hash) // missing hash
}

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.