Sidebar

What html code can be used in QIE to redirect to a different URL.

0 votes
418 views
asked May 16, 2016 by brandon-w-8204 (33,170 points)

1 Answer

0 votes
 
Best answer

There is 2 ways to accomplish redirecting to another URL from within a channel.

2 ways to do this:
 
Using html metadata:
qie.postMessageResponse('<html><meta http-equiv="refresh" content="0; url=https://www.qvera.com"/></html>');
Using html header status.
var redirectUrl = "https://www.qvera.com";
var response = 'HTTP Status: 303 \r\n' +
      'httpHeader: Location: ' + redirectUrl + '\r\n';
qie.postMessageResponse(response);
answered May 16, 2016 by brandon-w-8204 (33,170 points)
...