cmd icon indicating copy to clipboard operation
cmd copied to clipboard

Url fragments being duplicated for endpoints that have them.

Open RobFaie opened this issue 1 year ago • 1 comments

All of the Azure and Entra endpoints have this issue where the redirect ends up duplicating the fragment. Most of the time it doesn't matter but it is breaking the ad.cmd.ms endpoint at the very least.

A few examples: image

$hop1 = Invoke-WebRequest -Uri 'https://ad.cmd.ms' -MaximumRedirection 0 -SkipHttpErrorCheck
$hop1.Headers.Location

$hop2 = Invoke-WebRequest -Uri $hop1.Headers.Location[0] -MaximumRedirection 0 -SkipHttpErrorCheck
$hop2.Headers.Location

I had a look through the repo, but I'm not sure how you are handling the redirects beyond creating the _redirects file.

RobFaie avatar Oct 27 '22 05:10 RobFaie

Thanks, I didn't notice this. It looks like it started today.

The _redirects file is directly used by Cloudflare to perform the redirect. I have raised it with them to find a resolution.

merill avatar Oct 27 '22 07:10 merill