CQ and Javascript redirection
Trying to redirect to an EXTERNAL URL via javascript.
CQ blocks any attempts of reading or redirecting to external URL's.
How do I work around this?
Kind regards
Toby
Trying to redirect to an EXTERNAL URL via javascript.
CQ blocks any attempts of reading or redirecting to external URL's.
How do I work around this?
Kind regards
Toby
You are correct that when the Content Finder is open, you can't redirect the content window to a different domain. If you want to support JavaScript redirects while the content finder is open (which I actually wouldn't recommend as that makes authoring difficult), then the script would be :
<script>window.top.location.href="http://www.google.com/";</script>
The second issue you mention is not a CQ restriction; it is a browser restriction and is something which can be addressed by having the target site (i.e. http://www.externalURL.com) adding support for CORS.
Regards,
Justin
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.