07-08-2016 08:03 AM
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; | ||||
}); | ||||
Solved! Go to Solution.
07-08-2016 12:30 PM
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
07-08-2016 12:30 PM
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: