Page 1 of 1
Login Page Redirect
Posted: Thu Dec 04, 2014 6:00 pm
by DamianS
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?
Re: Login Page Redirect
Posted: Thu Dec 04, 2014 6:13 pm
by DamianS
DOH!!!
terminalserviceplus.com/docs/web-logon-page-how-to-open-html5-client-in-same-tab
Re: Login Page Redirect
Posted: Tue Dec 16, 2014 2:01 pm
by admin
Haha glad you figured it out

Re: Login Page Redirect
Posted: Tue Nov 03, 2015 8:30 pm
by Brian
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

Re: Login Page Redirect
Posted: Wed Nov 04, 2015 10:01 am
by juwagn
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.