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

0 votes
asked May 16, 2016 by brandon-w-8204 (33,330 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="/></html>');

Using html header status.

var redirectUrl = "";

var response = 'HTTP Status: 303 \r\n' +

      'http.header.Location=' + redirectUrl + '\r\n';



See also:

Handling HTTP requests and responses

Posting Responses via qie.postMessageResponse() in a channel that uses an HTTP Listener source node

answered May 16, 2016 by brandon-w-8204 (33,330 points)
edited May 16 by rich-c-2789