Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

your test URL (x) was redirected to X #15536

Open
paulirish opened this issue Oct 13, 2023 · 2 comments · May be fixed by #13474
Open

your test URL (x) was redirected to X #15536

paulirish opened this issue Oct 13, 2023 · 2 comments · May be fixed by #13474
Assignees
Labels

Comments

@paulirish
Copy link
Member

paulirish commented Oct 13, 2023

URL

https://elk.zone/home/

What happened?

i get this warning at the top:

The page may not be loading as expected because your test URL (https://elk.zone/home) was redirected to https://elk.zone/home/. Try testing the second URL directly.

dunno if this is weird URL handling on elk's part or we're being too stringent..

also i see our buddy in the console:

LH:Navigation:error Provided URL (https://elk.zone/home) did not match initial navigation URL (about:blank)

How were you running Lighthouse?

Chrome DevTools

Lighthouse Version

11.2.0

Chrome Version

120.0.0.0.0

@adamraine
Copy link
Member

It looks like the trailing / is the difference. No trailing / does actually result in a redirect:

❯❯❯ curl -I https://elk.zone/home
HTTP/2 301

The console warning is #15487

@connorjclark
Copy link
Collaborator

Lighthouse report shows it fine from CLI.

image

Quoting your OP, I see the above is what it you got too (GH rendering elides the trailing slash).

How did you get a redirect from DevTools (it should have already redirected, no?)

#13474 (comment) would help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants