Login Page Redirect

Get help with troubleshooting issues
Post Reply
User avatar
DamianS
Posts: 16
Joined: Tue Sep 03, 2013 7:49 pm
Contact:

Login Page Redirect

Post by DamianS » Thu Dec 04, 2014 6:00 pm

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

Image

User avatar
DamianS
Posts: 16
Joined: Tue Sep 03, 2013 7:49 pm
Contact:

Re: Login Page Redirect

Post by DamianS » Thu Dec 04, 2014 6:13 pm

DOH!!!

terminalserviceplus.com/docs/web-logon-page-how-to-open-html5-client-in-same-tab
Damian C. Stalls
Senior IT Engineer

Image

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Login Page Redirect

Post by admin » Tue Dec 16, 2014 2:01 pm

Haha glad you figured it out :D
Olivier
TSplus support team administrator
Image

Brian
Posts: 89
Joined: Thu Mar 21, 2013 6:19 pm

Re: Login Page Redirect

Post by Brian » Tue Nov 03, 2015 8:30 pm

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 :)

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Login Page Redirect

Post by juwagn » Wed Nov 04, 2015 10:01 am

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.
TSplus HTML5 and Java web engineer

Post Reply