Fix: ngx_pagespeed encloses url in noscript refresh with '
Posted: Tue Dec 12, 2017 12:25 am
				
				There is a Problem, at least with the nginx-Version of mod_pagespeed and it's meta-refresh to the noscript version of a website.
Visible here: https://staging.mein-deal.com/ (and if pagespeed is activated on the live site: https://www.mein-deal.com)
Pagespeed includes a <noscript>-Tag containing this:
Notice the ' surrounding the URL. Without NoScript but manually deactivated JavaScript, this is not an issue. With NoScript these ' will be used to produce this URL: 
Following this URL takes another redirection roundtrip to an even more mangled URL, resulting in 404.
A simple Fix for this is located in a fork on github: https://github.com/guradia/noscript/com ... 0f1034bf0c
Successfully tested in a dev version of FireFox.
			Visible here: https://staging.mein-deal.com/ (and if pagespeed is activated on the live site: https://www.mein-deal.com)
Pagespeed includes a <noscript>-Tag containing this:
Code: Select all
<meta HTTP-EQUIV="refresh" content="0;url='https://www.mein-deal.com/?PageSpeed=noscript'" />Code: Select all
https://staging.mein-deal.com/'https://staging.mein-deal.com/?PageSpeed=noscript'A simple Fix for this is located in a fork on github: https://github.com/guradia/noscript/com ... 0f1034bf0c
Successfully tested in a dev version of FireFox.