gamajo / codeception-redirects

Test URL redirects in Codeception

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seePermanentRedirectTo() doesn't check destination exists

GaryJones opened this issue · comments

Right now, the seePermanentRedirectTo checks if A sends theLocation` header and 301 status to redirect to B, but doesn't check if B actually exists.

The code should follow redirects, send a request to B, and check for a 200 response and the same URL (i.e. not silently redirected to C).