Closed wellington1993 closed 8 years ago
@wellington1993 Thanks for the bug report.
And just holy cow!
So with this request:
→ http GET http://paranavai.portaldacidade.com/cameras-ao-vivo/av-heitor-furtado-piramide-veiculos 'User-Agent:Mozilla/5.0 (Android 4.4.4; Mobile; rv:44.0) Gecko/44.0 Firefox/44.0'
The HTTP response is:
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Encoding: gzip
Content-Type: text/html
Date: Fri, 11 Mar 2016 01:50:50 GMT
Keep-Alive: timeout=5, max=500
Server: Apache
Transfer-Encoding: chunked
Vary: Accept-Encoding
<script>
if(window.screen.width < 480){
window.location.replace('');
}
</script>
<!DOCTYPE html>
<html lang="pt-BR" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" type="image/ico" href="http://paranavai.portaldacidade.com/img/favicon.ico" />
<title>Câmera ao Vivo da Av. Heitor Furtado - Pirâmide VeÃculos em Paranavaà - PR | Portal da Cidade</title>
<!-- CHECK IF THE PAGE IS NOINDEX - NOFOLLOW
================================================== -->
Notice the script sent before <!doctype html>
Funky! Same thing is happening on Blink and WebKit browsers. Not a WebCompat issue but a very very very broken site.
The thing is that window.location.replace('');
sends back a undefined
but the redirection still happens and enter an infinite loop.
I wonder if it should be blocked in browsers.
Firefox Mobile don't stop infinite loop.
Tried a tweet http://twitter.com/webcompat/status/720083280956010496
There is also a form at https://www.franquiaportaldacidade.com/contato Needs someone speaking Portuguese though.
Switching to contactready
The message in Portuguese was sent!
Thanks switiching to sitewait
This is fixed.
URL: http://paranavai.portaldacidade.com/cameras-ao-vivo/av-heitor-furtado-piramide-veiculos Browser / Version: Firefox Mobile 47.0 Operating System: Android 4.4.4 Problem type: Something else - I'll add details below
Steps to Reproduce 1) Navigate to: http://paranavai.portaldacidade.com/cameras-ao-vivo/av-heitor-furtado-piramide-veiculos 2) …loop redirect
Expected Behavior: page open
Actual Behavior: redirect loop