cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to get current mashup url at runtime?

MDUser
6-Contributor

How to get current mashup url at runtime?

Hi,

 

How to get the current mashup url at runtime? I tried adding location.href in an expression widget but it gives about:blank. Is there a way to get the whole thingworx url dynamically at runtime in a mashup or is there a way to get the current mashup name at runtime?

2 REPLIES 2
VladimirRosu
19-Tanzanite
(To:MDUser)

The following should work: location.hostname, location.port, location.host, location.protocol

 

location.href would not work  from what I remember.

MDUser
6-Contributor
(To:VladimirRosu)

Thanks. I am able to get the host and port. Is there a way to get the mashup name as well or to get the complete url including mashup name?

Announcements


Top Tags