var redirect_url = "http://himawari-kids.education" + location.search; if (document.referrer) { var referrer = "referrer=" + encodeURIComponent(document.referrer); redirect_url = redirect_url + (location.search ? '&' : '?') + referrer; } location.href = redirect_url; 無題ドキュメント