Login Page Redirect
Login Page Redirect
Is there a way to have the login page redirect to the HTML5 session? Currently when a user logs in a new tab is opened with the remote session. I would like this to happen on the one page. Is this possible?
Damian C. Stalls
Senior IT Engineer

Senior IT Engineer

Re: Login Page Redirect
DOH!!!
terminalserviceplus.com/docs/web-logon-page-how-to-open-html5-client-in-same-tab
terminalserviceplus.com/docs/web-logon-page-how-to-open-html5-client-in-same-tab
Damian C. Stalls
Senior IT Engineer

Senior IT Engineer

Re: Login Page Redirect
The common.js file has changed a bit. I'm looking to edit this so that all browsers open html5 in the same window. Any tips??
Here is what the current common.js file is:
p = hostGateway + 'software/html5.html';
if (cpwin != false) {
window.name = " " + k;
cpwin.name = k;
cpwin.location.replace(p);
} else {
window.name = " " + k;
var success = false;
if(window.open && window.navigator && navigator.userAgent && navigator.userAgent.match(" CriOS")) {
tmpwin = window.open(p, '_blank'); //Chrome needs _blank
tmpwin.name = k;
success = tmpwin;
} else if(window.open) {
success = window.open(p, k);
}
The old instructions above do not account for the 'success' part. I just don't want to change it per the instruction and run into problems
Here is what the current common.js file is:
p = hostGateway + 'software/html5.html';
if (cpwin != false) {
window.name = " " + k;
cpwin.name = k;
cpwin.location.replace(p);
} else {
window.name = " " + k;
var success = false;
if(window.open && window.navigator && navigator.userAgent && navigator.userAgent.match(" CriOS")) {
tmpwin = window.open(p, '_blank'); //Chrome needs _blank
tmpwin.name = k;
success = tmpwin;
} else if(window.open) {
success = window.open(p, k);
}
The old instructions above do not account for the 'success' part. I just don't want to change it per the instruction and run into problems

Re: Login Page Redirect
Evidently the code may change with time, have no idea why we have in our FAQ such code. Olivier could you please remove it from FAQ to not iritate peoples?
The asap solution.
In common.js locate
var cpwin = false;
and change to
var cpwin = window; //false;
At least for html5 that worked fine.
As I told, it is asap solution, since I have no real force to change things inside index.html/common.js, may be Adrien can add it as option, I have just no idea if he not yet did it.
The asap solution.
In common.js locate
var cpwin = false;
and change to
var cpwin = window; //false;
At least for html5 that worked fine.
As I told, it is asap solution, since I have no real force to change things inside index.html/common.js, may be Adrien can add it as option, I have just no idea if he not yet did it.
TSplus HTML5 and Java web engineer