properly handle external urls in ajaxy theme