Sidebar

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

0 votes
459 views
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=https://www.qvera.com"/></html>');

Using html header status.

var redirectUrl = "https://www.qvera.com";

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

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

qie.postMessageResponse(response);

 

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
...