cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
790
Views
0
Helpful
1
Replies

finesse window.open rewrites url

nmw000007
Level 1
Level 1

Hi

Im having problems with finesse and opening a new window, currently finesse have gotten the idea to rewrite the url and prepends something like this https://devuccx01.poc9.testlab.local:8445/gadgets/'https://192.168.167.12:8443/tdc/skillmanager/login?auth=******

Making my popup linking to an invalid location..

So the question are how can I avoid finesse prepending stuff to my url?    

Heres my small javascript fragment:

var html = '<a id="SkillManagerlink" href="#">Open TDC NetDesign SkillManager</a>';

            //set the html document's agentout element to the html we want to render

            $("#displayOut").html(html);

$('#SkillManagerlink').click(function () {
var urlToCall="'" + _urlToLoad + '?auth='+finesse.utilities.Utilities.getUserAuthString()+"'";
_clientLogger.log('pop(): trying to pop with '+urlToCall);
var windowRef=window.open(urlToCall,'SkillManager_by_TDC_NetDesign','width=1000,height=1000');
windowRef.location.href=urlToCall;
});
1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

Hi,

You have ' ' around the URL which is causing the prepended url. Change the following line of code to this:

     var urlToCall=_urlToLoad + '?auth='+finesse.utilities.Utilities.getUserAuthString();

and it should work.

Thanx,

Denise

View solution in original post

1 Reply 1

dekwan
Cisco Employee
Cisco Employee

Hi,

You have ' ' around the URL which is causing the prepended url. Change the following line of code to this:

     var urlToCall=_urlToLoad + '?auth='+finesse.utilities.Utilities.getUserAuthString();

and it should work.

Thanx,

Denise