update rewriteStaticLinks utility function(modifiy only relative urls) + fix chrome popup size
STUD-674